Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Remove tuples - use records instead.

Seriously? Mainstream languages are busy adding tuples because they make code so much cleaner when used appropriately. Leaving them out of Simple Haskellâ„¢ would be a big mistake, IMHO.



Yes this appears to be a silly suggestion, tuples are everywhere, especially as arguments for functions where it does not make sense to name the fields. They are also a structural type and records in Haskell are, unfortunately, nominal types. If Haskell records were structural (one would use newtype to make a nominal record), then tuples could be syntactic sugar for a structural record with field names 1, 2 etc. There is value in unifying them with records, but we still need them.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: