News for hackers. Stuff that matters.
Re:Apt Rust requirement raises questions by xscott on Tuesday November 25, 2025 @01:31PM (#46049001)
> For this specific issue, if square brackets were used for generics, then something else would have to change for array indexing

The compiler knows when the `A` in `A[B]` is a type vs a variable.

Re:Apt Rust requirement raises questions by steveklabnik on Tuesday November 25, 2025 @01:59PM (#46049359)
A compiler could disambiguate, but the goal is to have parsing happen without knowing if A is a type or a variable. That is the inappropriate intertwining of parsing and semantics that languages are interested in getting away from, not continuing with.

Anyway, just to be clear: not liking the turbofish is fine, it's a subjective preference. But it's not an objective win, that's all I'm saying. And it's only one small corner of Rust's syntax, so I don't think that removing it would really alleviate the sorts of broad objections that the original parent was talking about.