syntax highlighting parsers don't need to handle this :) nor does rustfmt but yes, I agree with your general point wrt proc macros
-
-
You said the same thing about [] vs <> and there are many languages doing fine with both unambiguous constructors in patterns and square brackets for type params. With similar respect, I think you misperceived the cognitive costs of familiarity vs. simplicity on those.
-
Square brackets don’t fix any ambiguities in Rust because of the conflict with array indexing. It certainly doesn’t solve turbofish. If we had gone with a.(index) for array indexing, *that* would have been a mistake.
- 6 more replies
New conversation -
-
-
I don't understand what would make the language harder to learn, then. The . is a mechanical detail. I'm also frustrated that this RFC is _again_ pushed under the "learnability" banner, while turbofish is _also_ an easy fact to learn.
-
There's tons of hard to learn stuff in Rust, Syntax is rarely among it. And we have _happily_ introduced such things in the past. (e.g. "why does impl trait not work in traits" makes sense from a language perspective, but not from a learners perspective)
- 4 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.