I think that most users don't base their decisions on language aesthetics based on what makes compiler authors lives easiest!
-
-
-
It’s not just compiler authors, though: I’m referring to things like having to write typename, or https://en.wikipedia.org/wiki/Most_vexing_parse …
- 1 more reply
New conversation -
-
-
Wait, what havoc does the C lexer hack cause? I've never found it a big deal in a proper compiler, and in tools I've always been able to get away with pseudo-parsing C without tracking typenames. (I'm sure it's different in C++, and I'm also 100% behind 'x:int' regardless.)
-
parentheses around the declarator in the declaration of a function parameter
- 13 more replies
New conversation -
-
-
Makes me feel sad about the AS3 EcmaScript 4 proposal being derailed. I programmed in AS3 and liked the dynamic then later static refinement paradigm. I like dynamic languages, but a safe language will be type safe. That particular model didn’t preclude strict dialects.
-
I put years into ES4. Much of it made it into ES6 (ES2015), but gradual typing is a hard nut to crack. Still some hope, but no champion in TC39. MS wants to keep TS out of the standard for now, and I do not fault them for this. FB Flow, same story AIUI. New blood is needed.
- 18 more replies
New conversation -
-
-
How about both: auto x -> int
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Care to explain in more depth on why?
-
Either the lexer or the parser needs to keep a table of what's a type in order to build the AST. https://en.m.wikipedia.org/wiki/The_lexer_hack …
- 3 more replies
New conversation -
-
-
I don't mind the type coming after the identifier. I do mind leaving it up to the compiler to decide what that type is for me, or that even being an option. Not my cup of tea.
-
Thankfully type inference is not that at all.
- 3 more replies
New conversation -
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.