These days, you sprinkle auto in your C++ until it compiles.
-
-
-
The whole point of the compiler knowing the static type of an expression is so that it can refuse to compile unless you know it too.
-
That's wrong. Compilers should infer types for boring programs and synthesize programs from interesting types...
-
... or aid us in the latter if they can't synthesize. I say this as a grad student in type theory.
End of conversation
New conversation -
-
-
Honestly dear I'm fairly certain C++ has done terrible things to your aesthetic. It isn't right, the way it treats you.
-
Why should C++ compile for you if you don't love it and how can you prove your love without declaring the right static types
-
Prove your love for it by mercilessly critisizing the shit out of it, like we do with each other.
-
(I think the main reason it introduced auto was for zero cost lambdas, btw.)
-
(Their full types have no name. If you abstract them function<void(int, int)>, I think it boxes them and blocks inlining)
End of conversation
New conversation -
-
-
In my day we typed out our iterators and still added a linebreak on 72 for the teletype machines.
-
for( typename std::iterator< std::vector< Typename > >::type iterator = containername .begin(); …
-
typedef all the things
-
Last time I saw someone typedefing that I wanted to strangle him. Such freaking clutter.
End of conversation
New conversation -
-
-
You should learn Rust! There's no "auto" keyword cos that's the default. Ditto "const".
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
At least it'll still silently regress into nasal demon summoning if you accidentally free twice, right?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
[sips Earl Grey tea from a silver teacup] Oh, yes, 'auto' type inference. How quaint. More tea, Mr. Hindley? Mr. Milner?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@StephanTLavavej beware the difference between auto and auto &, easy to get it wrong when in a hurry.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@StephanTLavavej If it makes you feel any better, Java still has no type inferenceThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.