Re:Go generics draft design: building a hashtable
by IshKebab on Thursday June 18, 2020 @05:31AM
(#23561399)
I'd definitely prefer angle brackets. With everything being parantheses I just get lost keeping track of what is what - they're now used for type parameters, parameters and return values, one after the other with no separation, and two of them are optional. Quite confusing if you ask me.
[ Parent
| on HN ]
Re:Go generics draft design: building a hashtable
by Cthulhu_ on Thursday June 18, 2020 @08:47AM
(#23562563)
And yet, if you think about parsing it, they're all ways to group things together. Avoiding adding reserved characters (see also the discussion about adding ternaries) is a worthy goal to pursue. Keeps the parser(s) simpler too.
An IDE / coloring scheme can help make things look more distinct if need be.