3 ms·
No tuples?! What if you want a function to return, say, a number and a string? Are lists heterogeneous? That defeats a lot of the safety a type system can offer
by Jeff_Brown 3y ago
No tuples?! What if you want a function to return, say, a number and a string? Are lists heterogeneous? That defeats a lot of the safety a type system can offer.
- SantalBlush 3y agoYou might be interested in a fork of Gren that has tuples and maintains the safety of a type system.
- deleted 3y ago[deleted]
- G4BB3R 3y agoYou can still use records and custom types for this case.
- Jeff_Brown 3y agoAh, of course! Those are as expressive and safer. Thanks.