News for hackers. Stuff that matters.
Re:Go generics draft design: building a hashtable by rob74 on Wednesday June 17, 2020 @06:52PM (#23557774)
Well, Go already picks and chooses elements from different languages, e.g. Pascal-style declarations ("x int" instead of "int x") and C-style blocks ("{...}" instead of "begin...end"). So I'm not surprised that when deciding on the syntax for generics they look more at what fits best for Go than at what other languages are doing...
Re:Go generics draft design: building a hashtable by DaiPlusPlus on Wednesday June 17, 2020 @07:08PM (#23557909)
I do prefer TypeScript’s version of Pascal-style declarations now. Though I really don’t like how Go doesn’t have a colon between the name and the type, it makes it harder to scan-through parameter lists when you aren’t using an editor with syntax colouring.

(I had to write a lot of Go code in Notepad for a while in 2017 - never again)