semantic highlighting needs to parse.
-
-
I don't have Rust's whole grammar in my head, but with square brackets you'd at least have more similar grammatical roles in type and expr grammar, wouldn't
-
It might mean that it's still semantically ambiguous at parse time but you could do a name lookup pass on the AST without needing turbofish or context-dependent parsing
- 4 more replies
New conversation -
-
-
It (or a similarly unambiguous expr-level form) works fine in Ada, Algol, BASIC, COBOL, Erlang, Fortran, Haskell, Lisp, OCaml, PL/I, Pony, Scala, Simula and Smalltalk. But whatever, nobody ever learned those.
-
Or Java, given that 99% of the time you’re dealing with a collection object rather than a primitive array.
End of conversation
New conversation -
-
-
Absolutely agree on that Patrick.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
at least square brackets are balanced for both types and arrays
Thanks. 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.