3 ms·
It complicates parsing and creates ambiguity. It also makes it harder to create tooling. > AFAIK, Golang assigns no special syntactic meaning to angle brackets
by ogogmad 6y ago
It complicates parsing and creates ambiguity. It also makes it harder to create tooling.
> AFAIK, Golang assigns no special syntactic meaning to angle brackets beyond comparison operators
Go has also got bit-shift operators << and >>, which wouldn't interact well with angle-bracket notation.
- Arainach 6y ago>Also, Go has bit-shift operators << and >>, which wouldn't interact well with angle-bracket notation. So do Java and C++. This is a solved problem in parsing. The overall point that angle brackets make parsing more complex stands, but bit-shift arguments are irrelevant.
- pjmlp 6y agoWith the little detail that their lexer makes use of type information, while Go one doesn't.
- imtringued 6y ago"Solved" is the wrong goal. It would be much better if the problem did not exist in the first place.