3 ms·
Will "lack of non-nullable types" become the new "lack of generics" now they implemented generics? Guess we'll have to wait and see...
by rob74 5y ago
Will "lack of non-nullable types" become the new "lack of generics" now they implemented generics? Guess we'll have to wait and see...
- tptacek 5y agoWhat are you trying to communicate here? That releasing one of the most popular languages in the industry without sum types is a form of original sin, and if they ever added enums and a match statement, you're be more right to hate the language? Some of the logic in these threads is just baffling to me.
- maleldil 5y agoMaybe? Generics were the most egregious absence, since it's challenging to express some constructs in a static language without them. Nullable types are another issue that other modern languages (e.g., C# and TypeScript) are trying to solve, but we it's a difficult issue to tackle when nil is already pervasive in the language. I think generics are a great addition to the language, and I'd love to see sum types (which would allow Option to circumvent nullable types), but I think that's much less likely.