Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Jeff_Brown
· 3y ago · 0 comments
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.
Comments
[–]
SantalBlush
3y ago
You might be interested in a fork of Gren that has tuples and maintains the safety of a type system.
[–]
G4BB3R
3y ago
You can still use records and custom types for this case.
[–]
Jeff_Brown
OP
3y ago
Ah, of course! Those are as expressive and safer. Thanks.