News for hackers. Stuff that matters.
Re:Go generics may use square brackets [] not parenthesis () by kyrra on Tuesday July 14, 2020 @10:21PM (#23840497)
Parser lookahead...

They even say that it is possible, but it makes producing useful error messages harder and makes the parser more complicated. they are not saying it is not possible, they are just saying it's not preferred to do.

Re:Go generics may use square brackets [] not parenthesis () by rsc on Tuesday July 14, 2020 @10:23PM (#23840508)
In some languages unbounded parser lookahead is enough. But parser lookahead does not solve the ambiguous Go example given in the mail. Only type information would.
Re:Go generics may use square brackets [] not parenthesis () by soamv on Wednesday July 15, 2020 @12:06AM (#23841213)
Why doesn't the same idea of adding a type keyword work there too?

a, b := w<type x,y>(z)