News for hackers. Stuff that matters.
Re:Go generics draft design: building a hashtable by qtplatypus on Wednesday June 17, 2020 @08:34PM (#23558534)
It is not a question of "Improve" but a question of dealing with tradeoffs. The Go parser is built so that at every stage it is totally unambiguous what the parser has to do.

This reduces the amount of state that the parser has to carry around and makes the error messages for syntax errors easier to generate.

Languages that use <>'s for generics have to look at a larger amount of the code when parsing to work out what to do.

There are no comments on this comment yet.