3 ms·
"... reminds me of java" i was having doubts before go introduced generics. But the fact that they managed to add it so perfectly while maintaining the unambig
by bsaul 3y ago
"... reminds me of java"
i was having doubts before go introduced generics. But the fact that they managed to add it so perfectly while maintaining the unambiguous focus on simplicity and structs made me confident they've really nailed it.
The only feature i don't get why they haven't added yet is proper enum to get some kind of ADT. It looks super orthogonal to the language and quite convenient. However at this point i fully trust their taste. If they think it's going to lead to catastrophic design decisions, i fully believe them.
- pjmlp 3y agoGo generics are far from perfect, and while they finally sort out a major paint point, they still leave some room for improvements.
- bsaul 3y agoThey do, but i'm super relieved they managed to add it to the language while not changing its focus and general feeling. It really feels like a refactoring tool rather than a new design tool : you still think mostly about functions and structs and don't get carried by "is x a kind of y" kinds of discussion.