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.
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.