« first day (1648 days earlier)      last day (3299 days later) » 

4:00 PM
gtg, short stay, but I'll be back ;) cya
 
@R.MartinhoFernandes Is that like the periodic table I learned in Kemistry class?
 
what is kemistry
 
now why doesn't implicit conversion from signed int to unsigned int throw a warning HUH
 
The study of keming.
So, I wanna change my e-mail address. Some services let you change the address associated with your account; fine. What do I do with the rest? :S
 
@LightningRacisinObrit because it's up to you to make sure what you do is sane
 
4:02 PM
@Nisk That logic applies against any warning and many errors.
 
@R.MartinhoFernandes yup, that's c family of languages for you
 
No, that's faulty logic.
 
No, logic lies with the programmer, computers are dumb and byes are bytes.
bytes*
 
It's your faulty logic.
Neither C nor C++ behave that way.
 
@R.MartinhoFernandes point it out please.
 
4:04 PM
Well, maybe C a bit.
Not C++.
It may be up to you to decide what you are doing is sane, but that's no reason for the compiler to assume you're infallible.
There are ways to tell the compiler you know you're doing something sane. In the case described above, you do it with an explicit conversion.
@Nisk "Bytes are bytes" stops being important once you are dealing with objects that are not bytes (which in C++ involves an unbounded number of types).
 
even in C IIRC there are some objects like uninitialized values that you can't really treat as just bytes.
 
@R.MartinhoFernandes it's not the compilers job to assume anything, it just compiles, what we have is the quest to make compilers smarter to make up for deficiencies in programmers.
 
@R.MartinhoFernandes rip
 
@Nisk That's the same thing I said vOv
 
@R.MartinhoFernandes and what I'm saying is that it is pretty much in spirit of c family languages to not hold your hand.
 
4:13 PM
no it is not.
 
@R.MartinhoFernandes Most C++ (and C) compilers can give warnings about at least some code that causes conversion between signed and unsigned (e.g., for (int i=0; i<sizeof(x); i++), but it's up to you to enable the warnings...
 
for one, there are plenty of C-family languages like C# that are not that way at all.
 
@Nisk I get the feeling that the C++ standard goes quite a long way away from the spirit of the language, then.
 
but even assuming that you meant only C, C++ and Obj-C, it's only their spirit to allow you to do shit if you really wanted to.
 
@Puppy C# has fuck all to do with c
 
4:14 PM
it's not their spirit to prevent you from doing shit you didn't want to.
 
@Puppy it's basically java
 
Java inherits some stuff from C, not a tremendous amount but some and it's typically considered a C family language.
 
@Puppy exactly, in C you can do absolutely anything, no matter if it makes sense
 
and C# is a very different language to Java by now.
 
@Nisk That is not true. We're done here.
 
4:15 PM
@R.MartinhoFernandes ...and Bjarne (among others) has expressed strong disagreement with this idea of the "spirit of the language" as well.
 
That attitude stalls language development and poisons codebases everywhere.
 
user1804599
Hi.
 
(And is wrong)
 
@R.MartinhoFernandes not for you to say it's wrong.
 
@Nisk What about the C standard?
It's basically a long list of what you can and cannot do.
It lists lots of things you cannot do.
This is actually a valid argument from authority.
Wow.
 
4:17 PM
@R.MartinhoFernandes well no shit, I'm not talking about completely idiotic things that don't compile...what a fucking proposition to make
 
@Nisk It is factually incorrect to claim that "in C you can do absolute anything". The whole point of the C standard is to tell you the limits of what you can and can't do. Some of those things are outright prohibited (compiler must emit a diagnostic) while others give undefined behavior (so you can't do them, but the compiler isn't obliged to stop you either).
 
@Nisk Plenty of things that "compile" that the C standard doesn't let you do.
 
Ven
o/ @rightfold
 
@R.MartinhoFernandes frankly don't care. My initial stance was - know what the fuck you're coding, simple as. Don't expect the compiler to hold your hand.
 
u r so 1337
 
4:19 PM
That.
 
lol
 
@Nisk Like a Real Programmerâ„¢.
 
@R.MartinhoFernandes (who can write Fortran in any language).
 
haha
 
@Nisk Nice idea, but pretty much the definition of a non-trivial program is one that nobody completely understands it in its entirety. So, taken at face value your advice is "stick to only writing trivial programs." Nice idea, but doesn't pay very well.
 
4:24 PM
@JerryCoffin On the contrary, I have written many trivial programs. They’re really easy to get right!
 
@JerryCoffin well no, here I will call you out - the point that sparked all this was to do with basic data-types, so nice try, but no.
 
@JerryCoffin It's the arrogant spirit of C dinosaurs. "Blah blah metal bla#$@@#KEYMATERIALHERE%$#%$".
@Nisk Waaaaaaaaaiiiiiiiit.
You grab a specific example to build absurd generalisations and then when shown wrong dismiss everything as "but this example"?
 
@LucDanton Oh, I've written many trivial programs too--but I doubt I could get a job that supported my family that only involved writing trivial programs. Well, on second thought I probably could, but somehow "webdev" doesn't sound like real programming to me...
 
@R.MartinhoFernandes that's too grand for me. I simply said don't expect too much from c in the way of fixing your mistakes. You folks started jumping on the standards bandwagon and whatnot. You're the ones trying to build something more out of this.
 
@JerryCoffin The money is real, though :P
@Nisk I didn't bring the words "spirit of the language".
 
4:28 PM
@Nisk You're the one who shifts the goalposts.
 
@R.MartinhoFernandes So it is--real, but not a whole lot of it (well, I don't think it pays all that well anyway--but I guess that's really an assumption; I've never cared enough to check).
 
Ven
@JerryCoffin I think what was meant is that – you should split your programs more
 
@R.MartinhoFernandes eh I said it's not in the spirit of the language to hold your hand, don't try to extrapolate beyond that sentence
 
Ven
the unix way -- do one thing, and do it well!
 
@Nisk And you extrapolated that from that tiny example?
 
Ven
4:29 PM
For example, look at ls. it does one thing, and does it well: man ls gives us: ls [-ABCFGHLOPRSTUW@abcdefghiklmnopqrstuwx1] [file ...]
4
 
I didn't go to even greater heights. I stuck to disproving that, i.e., undoing your extrapolation.
 
@R.MartinhoFernandes extrapolated what? That you can't expect the compiler to hold your hand on basic datatype conversions? Wow...such a stretch.
 
> spirit of the language
 
it's a small world. Ran into sbi earlier :)
 
@jalf He's in Denmark?
 
Ven
4:31 PM
@milleniumbug whoops, fixed.
 
No, in Bristol, for accu
(and so am I)
 
is there a way for me to remove the ().Sig()cruft and still keep the std::function-like syntax here? coliru.stacked-crooked.com/a/e3114cc5fd4e174c
since those things will be passed to something the best thing I've thought of was implicit conversion to std::string to avoid Sig()
 
template variables?
 
@R.MartinhoFernandes greater heights? disproving? You haven't disproved shit, you tried to rephrase what I said to make it out like I said something more than "C family of languages are quite unforgiving" which you could then subsequently disprove.
 
4:32 PM
I'm also aware I can't do shit without an instance of each of those though so I have no idea what
 
@AlexM. You can go C++14 variable template.
 
@Nisk Oh well. I think I am happy with my counterarguments to the claims made about the spirit of the language. Have fun.
 
yeah I can only C++03 :(
 
Then no.
 
Cat posted a nice solution a while ago but instead of having std::function-like syntax used some operator overloading to make it seem like it on concrete instances
I was wondering if I can get the same thing but with my syntax
 
4:34 PM
wait, the lounge is about cooking?
 
Sorry, I was too hasty. You can get rid of the .Sig(). But there has to be a function call somewhere.
 
@Ven I wish I could. But let me give a concrete example. Where I work, we're designing a processor with hundreds of cores per chip. One of the projects I work on is a simulator for that design. Much as I might wish I could make this small and easy (or even possible) for anybody to understand completely, I haven't been able to so far. In fact, much of the reason we use the simulator is because without it, nobody's entirely certain about things like what effect design decisions will have.
 
@LucDanton is it weird to you if I do the implicit conversion to std::string?
I mean can you see anything going wrong with it
 
@JerryCoffin Did you mean "without it"?
 
@AlexM. Write a function template that returns the string.
 
4:35 PM
@Puppy Beat you to it, but yes.
 
@LucDanton something like MakeSig<JFunction<...>>?
I tried something like that but in the end I gave up because I just moved the cruft somewhere else
 
@AlexM. When called it will have the () but yes. If it’s an operator then the call looks like using the operator.
 
user1804599
Hi.
 
@AlexM. e.g. template<typename Sig> std::string sig() { return Sig().Sig(); } (that’s a lot of sigs!)
 
argh :(
I'll think of something
but a bit later once I'm not hungry anymore
actually tomorrow, I have to leave work in like 40 min
 
4:41 PM
@AlexM. Beware C++03 and <</>>. demo
 
Xeo
That looks like a typical Haskell operator of some kind
 
user1804599
It's a Perl 6 operator.
 
user1804599
> (1, 2, 3) <</>> (4, 5, 6)
0.25 0.4 0.5
 
@LightningRacisinObrit So many things use e-mail as identity :( I wonder how many will change it if I e-mail support asking for it.
 
user1804599
Similar to Z/ (Z is zipwith) except assumes no side-effects.
 
user1804599
4:47 PM
> (1, 2, 3) Z/ (4, 5, 6)
0.25 0.4 0.5
 
it's not like there's a point in instances of those things to exist
 
Sure.
 
nice, and it's even more understandable than my previous enums with bitmasks stuff
 
Xeo
template<class Sig> std::string JSignature(){ return JFunction<Sig>::Sig(); }
I still like my typelists more.
@rightfold FFS Perl.
 
Ven
@rightfold cmon dude, why those parens?
 
user1804599
4:56 PM
Because I also need them with <</>>.
 
Ven
also, <</>> doesn't care about side effects
you just might have an issue with the order
 
user1804599
It parallelises.
 
user1804599
That breaks terribly if you depend on side-effects.
 
Ven
which doesn't assume no side effect :-)
I can just increment a counter, that's a side effect that doesn't need to be ordered
 
user1804599
4:57 PM
Why's there Z anyway?
 
user1804599
I don't like Perl 6.
 
ignore the namespace and names, I'll think of something cleaner
but I think that's exactly what I need
 
@orlp What else would it be about?
 
@Nooble hunting koalas
 
@orlp :(
 
Ven
4:59 PM
@rightfold mostly because of how it "fills" the lists on both sides.
@rightfold well, you're rightfold.
 
user1804599
It's too complex.
 
Ven
how is Z complex
 
@orlp Be vewy, vewy kwiet...
 
Xeo
@AlexM. JVoid[JInt, JString, JArray<JInt>()] is still nicer. :P
 
Ven
you can write .reduce(&infix:<+>) if you prefer
 
5:01 PM
@R.MartinhoFernandes just don't ask Spotify
@Ven wow totes readable
 
Xeo
Or y'know, if you're going with the abundant overloads anyways, make it JVoid(JInt, JString, JArray<JInt>())
 
Ven
@LightningRacisinObrit if you consider infix:<+> is the actual name of the + function, yes
@LightningRacisinObrit you can literally say sub infix:<+>(Int $a, Int $b) { 10 } in Perl6
 
@Xeo yes but let me enjoy the success of using templates for something other than passing different functions to the same thing for the first time
 
Xeo
Hm, that JArray<JInt>() part is annoying
 
Ven
5:03 PM
@LightningRacisinObrit YMMV :)
 
I need to celebrate with alcohol
I haven't had any in 2 weeks
 
Xeo
JVoid(JInt, JString, JInt[_]). Hm.
Stupid arrays.
JArray[JInt] would be possible, but that also looks kinda wrong
 
@Ven Just convention (but a widespread one). The real part of a complex number is Re(Z) and the imaginary part is Im(Z). Of course, other conventions use Z to mean other things (e.g., in electronics, it's used for impedance--though impedance can be thought of as a complex number as well).
:-)
 
Ven
@JerryCoffin then again - ymmv. you can define a postfix Z on Int :P
 
@Ven You can define a _Z, but just operator""Z would give undefined behavior (reserved for the implementation).
 
5:06 PM
@Ven it does!
@AlexM. no wonder you've been so goaty grouchy
ahaha just realised did you see this
 
Ven
@JerryCoffin we're talking about perl6 here :P
 
yesterday, by Lightning Racis in Obrit
user image
 
@Ven You may be talking about Perl6, but I don't demean myself that way.
 
Ven
@JerryCoffin Alright :)
 
@Ven I have many other ways to demean myself, most involving lousy puns.
 
user1804599
5:08 PM
@Ven No, Perl 6 is complex.
 
Ven
@rightfold what language is your VM in?
But yes, yes, it is
 
user1804599
C++.
 
Ven
@rightfold So you don't see complexity as a bad thing
 
user1804599
I never said that.
 
Ven
Well, you're rightfold, so you'll say c++ sucks then 10minutes later, that it's amazing ;-)
 
user1804599
5:09 PM
If I were to write it again I'd do it in Go.
 
user1804599
Especially since concurrency and garbage collection would then already be implemented.
 
@LightningRacisinObrit yeah I was going to make a joke about how in romania you're playing goat simulator every day but I think I started doing something else
 
Ven
@rightfold ew ;-)
 
on a more serious note the amount of platforms that game has reached is absurd
and it's just a meme
 
user1804599
Go is awesome.
 
Ven
5:12 PM
shh, no tears, only dreams now
 
> Android, iPad, iPhone, Linux, Macintosh, Xbox One
all of these run goat simulator
I need to goat on a 4" screen to see how it feels
 
Ven
do they run gta V? they'll... in 10 years
 
pretty curious when GTA IV will be ported to Android
I'd give it... less than 6 years
with san andreas running on phones, IV is next in line
 
> I need someone freelancer, who can assist me in some daily tasks and
projects (coding/design). If you can work with me, please contact me.
Or if you can, give me some contacts/hints, where I can get a freelancer
for my tasks.
email I just received
@rightfold No user-defined generics and no exceptions places it firmly in the "shit" bucket.
 
@Puppy For the right price... (but somehow I'm guessing his idea of the price will be much more right for him than you).
 
5:20 PM
Hahaha check this out: tholman.com/elevator.js
 
> Fork me on Github
First strike.
 
@ShotgunNinja Because "Home" keyboard button doesn't exist.
 
@milleniumbug That's the point.
it's a really stupid library and a perfect near-parody of Javascript libraries that overcomplicate everything.
 
5:28 PM
@ShotgunNinja It's like it's 1998 all over again with these bookmarklets.
 
@milleniumbug What an awesome idea! (SCNR)
 
@JerryCoffin Sorry to say it, but you're not genuine rightfold. :(
 
5:43 PM
ffs
didn't bring charger with me to the hotel
:idiot:
2
@AlexM. lulz
 
my code would look soooooooo much nicer if c++ had designated initializers :[
 
user1804599
@Puppy :'^(
 
hmm getting decent passive rep these days <3
 
5:59 PM
@R.MartinhoFernandes robot?
@LightningRacisinObrit Did you get your present yet?
 
user1804599
lol robots
 
A phrase not an answer — Dieter Lücking 1 min ago
TIL
 
@milleniumbug I'm not even much of an imitation rightfold.
 
Hello there! I have a collection of things: (a, b, c, d) and I want to transform it to a collection where every two consecutive elements are paired in a tuple: ((a, b), (b, c), (c, d)). Is there a technical name for this kind of operation?
Its a compile-time thing, so I can't use loops or any intermediate state
 
A phrase not an answer — Jefffrey 1 min ago
I'm going to make an enemy for life
 
6:04 PM
@Jefffrey Man, we're already coming to your rescue haha
 
user1804599
@KarimAgha "zip xs with tail of xs"
 
user1804599
Prelude> let xs = [1, 2, 3, 4]
Prelude> xs `zip` tail xs
[(1,2),(2,3),(3,4)]
 
rightfold, thanks! I will read about "zip"
 
@Columbo Aw, a message I'll never get to see
 
user1804599
@KarimAgha zip takes two sequences and creates pairs from them:
 
user1804599
6:06 PM
Prelude> [1, 2, 3, 4] `zip` ['a', 'b', 'c', 'd']
[(1,'a'),(2,'b'),(3,'c'),(4,'d')]
 
user1804599
You can implement this with templates in C++ as well.
 
This is super elegant. Much appreciated!
 
@rightfold ...and (although I'm sure you know it, @KarimAgha may not) Boost has a zip_iterator that does so.
 
6:09 PM
> 69.pdf
 
@EtiennedeMartel I wqas hoping for an instruction manual. I found nothing of a kind.
Yes a bee bit my left ring fingwer the other day. It was traumatic.
 
user1804599
@Nican Why would any parent buy this
 
user1804599
knowing they will have to clean up all the shit.
 
Thanks @JerryCoffin. I'm looking at something that is compile-time. I want to do this operation on std::tuple<...>
 
user1804599
Fun idea: play Pie Face with a piele of poo.
 
6:11 PM
Is there something that does "zip" and "tail" in STL? They seem easy enough to implement, but just wondering if its already there
 
user1804599
No.
 
user1804599
Not for template metaprogramming.
 
@sehe I don't care for Rammstein at all.
 
user1804599
With iterators, tail is just xs.begin() + 1, xs.end().
 
6:13 PM
WTF is zip in STL?
 
WTF is STL?
 
combine elements from two containers into one?
 
I've started to play around with Haskell, and its slowly becoming my most favorite language.
 
Like c[0] = a[0] + b[0], c[1] = a[1] + b[1] and so on.
 
@CaptainGiraffe Container<std::pair<A, B>> zip(Container<A>, Container<B>)
 
user1804599
6:14 PM
template<typename... Ts>
struct pack { };

template<typename T, typename... Ts>
using tail = pack<Ts...>;

template<typename Ts...>
struct zip {
    template<typename Us...>
    using with = pack<pack<Ts, Us>...>;
};
 
user1804599
Something like that, perhaps. :P
 
user1804599
Then zip<Ts...>::with<tail<Ts...>>.
 
It would most likely be implemented with this interface though: ItR zip(ItA begin_a, ItA end_a, ItB begin_b, ItB end_b, ItR begin_r)
 
@rightfold Oh for The love of That Tom Hanks movie in 1996.
 
6:16 PM
std::vector<std::pair<int, double>> out;
std::transform(in1.begin(), in1.end(), in2.begin(), std::back_inserter(out), [](auto f, auto s){ return std::make_pair(f, s); });
 
user1804599
Eww.
 
user1804599
Copying.
 
user1804599
Make a zip type which has a ctor taking two iterator pairs and has begin and end functions that return iterators to pairs of references.
 
@milleniumbug in2.end()?
 
@rightfold I thought Perl 6 was the greatest language ever?
 
6:17 PM
@rightfold Why?
 
user1804599
@fredoverflow No, that's Go.
 
@Jefffrey Fuck STL.
 
user1804599
@CaptainGiraffe Because then you don't need to copy everything?
 
Swift by SO measurements.
 
6:17 PM
@milleniumbug That makes sense though.
 
This guy...
2
Q: How can I get a std::set of characters in a string, as strings?

EMBLEMI have a std::string. I want the set of unique characters in it, with each character represented as a std::string. I can get the set of characters easily: std::string some_string = ... std::set<char> char_set(some_string.begin(), some_string.end()); And I could convert them to strings like th...

 
user1804599
I should add word lists to my COBOL hangman to learn about reading files.
 
@Columbo I find that pretty good humor. Not Monthy P grade, but at least Seinfeld grade.
 
@Jefffrey I have an aversion to looping when it doesn't use the standard library, I mean, instant O(n). I want to do this because I will be taking the union of this set with another set of std::strings, so both sets need to have the same type. — EMBLEM 8 mins ago
You guys have done this
 
@CaptainGiraffe Glad you liked it haha
 
6:20 PM
FEEL ASHAMED
 
> I'm misleading and I know it bass drops
 
user1804599
I think I'm the only one in this room who likes Go.
 
@rightfold I'm perverted enough to occasionally like javascript: marcodiiga.github.io/knode
 
@rightfold I play Tux carts too.
 
Although I have to admit that I really suck at it
 
6:28 PM
@rightfold Remind me again what's the nicest thing about Go?
 
@Jefffrey That it isn't used excessively?
:P
 
Try to sell it as if you were actually interested in getting people aboard.
 
user1804599
@Jefffrey Concurrency and I/O are supreme.
 
@rightfold No they're not.
Facts, have you got any?
 
user1804599
The two main I/O interfaces all having only a single method, for one.
 
user1804599
6:30 PM
Unlike most shitty I/O interfaces that try to do everything.
 
And what's that method?
 
user1804599
Read and Write.
 
user1804599
And concurrency is just "spawn as many threads as you like and use queues", not horrible crap like "use mutable variables and callbacks/futures".
 
@rightfold Wait, so did method mean "member function"?
@rightfold Can't you have a Queue-only interface in c++ as well?
 
user1804599
type Reader interface { Read(p []byte) (n int, err error) }
type Writer interface { Write(p []byte) (n int, err error) }
 
6:32 PM
I remember looking at Go and seeing something very terrible about it. So terrible that my brain removed it and now I can't remember it.
Maybe I should give it another try.
 
I prefer the more sophisticated Befunge
 
user1804599
@Jefffrey Do iiiit!
 
Also I'm officially out of the Haskell fanboy club.
 
user1804599
Good. :3
 
user1804599
Welcome to the out of the Haskell fanboy club club. :3
 
6:33 PM
Haskell is one big piece of functional crap.
 
And somehow back into the C++ fanboy club.
 
user1804599
OMG C++ <3
 
I never looked at it, but it didn't start with C, so that was all the proof I needed
 
lol
 
@ShotgunNinja 65 This is so cool lol
 
user1804599
6:35 PM
@Jefffrey Did you do tour.golang.org!
 
No, I'm searching for a talk about it.
 
And funnily enough when I let Youtube infer what I meant with "Go pro" it gave me this gopro.
@rightfold You have to admit that all the puns with "Go" are terrible in that community though.
 
Nah, there's more potential for jokes with C##
 
> Let's Go Further: Build Concurrent Software using the Go Programming Language
 
user1804599
6:37 PM
lol
 
> Another Go at Language Design
Dear lord
 
@rightfold:

template <typename T, typename... Ts> using tail = std::tuple<Ts...>;
template <typename... Ls> using tail2 = detail::tail<Ls...>;

Here tail2 is not instantiated ever, yet I'm getting this compiler error around "tail2":

Pack expansion used as argument for non-pack parameter of alias template
What I'm doing wrong?
 
user1804599
Oh. No idea.
 
ok :)
 
user1804599
Maybe you can't do that with aliases and you have to use structs instead.
 
user1804599
6:43 PM
C++ is full of surprises and special cases.
 
It works with structs, but the using syntax is so pretty..
1 line of code vs 4
 
user image
14
 
Ven
@rightfold wat how?
 
@MarcoA. can confirm, I use jQuery.YoutubeToMp3 everyday
 
halp, I don't understand...what am I doing in print_ref that kills the ref?
 
6:47 PM
@AlexM. that's a great plugin. I prefer instead jQuery.formatDrive
I hate those unformatted USB pens
 
Some uses of the new c++11 initialization stuff makes my code look very strange
    shared_ptr<gl::VertexBuffer> list_vx =
            make_shared<gl::VertexBuffer>(
                std::vector<gl::VertexBuffer::Attribute::Desc>{
                    {
                        "a_v4_position",
                        gl::VertexBuffer::Attribute::Type::Float,4,false
                    },
                    {
                        "a_v4_color",
                        gl::VertexBuffer::Attribute::Type::UByte,4,false
                    }
                },
                gl::VertexBuffer::Usage::Dynamic
Ignoring all the ':::' operators, it looks like json almost
 
@MarcoA. @AlexM. "Hey, I'll make a new project. Agile or waterfall?" "jQuery"
 
@melak47 Reference to the temporary?
 
@milleniumbug derp. y no reference to literals :p
 
6:52 PM
I'm seriously considering making my programs that do store non-owning reference to take a pointer instead.
int x; Decorator<int> y(&x); instead of int x; Decorator<int> y(x);
 
pepsi light is quite good
the absence of sugar or w/e is felt but it's still good
 
Or wait
There's a class for that - it's called reference_wrapper<T>
 
@milleniumbug Are you mad? That would make that code far more readable.
@Prismatic inb4 C++11 feels like a new language
 
user1804599
C++11 is old.
 
user1804599
C++17 is new.
 
6:55 PM
@fredoverflow Nope, defo doesn't feel like a new language. I ain't no bjarne getting all misty eyed over c++11. Just looks pretty different sometimes.
 
index = index++;   // Several students wrote this. It never gets old.
 
user1804599
lol
 
user1804599
In Scala that's luckily a type error!
 
user1804599
Does Scala have ++ at all?
 
user1804599
I think not. You have to say += 1.
 
user1804599
6:57 PM
But index = (index += 1) is a type error.
 
Scala has no ++ operators.
 
user1804599
Unless you pimp Unit with +.
 
They could have used -- for functional comments ;)
 
@fredoverflow Now I'm thinking I should be better off with std::reference_wrapper
int x; Decorator<int> y(std::ref(x));
Raw pointer usage should give a message to the user "you're interacting with legacy code"
Making raw pointers do also the other thing will conflict with the goal above.
 

« first day (1648 days earlier)      last day (3299 days later) »