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

> they are the way to accomplish object-like coding in Haskell. > Actually, records with functions (closures) inside is usually a better choice:

The better choice would be to use Haskell as it was intended to be used.



And that doesn't include first class functions inside of data structures? :)


I was just responding to "object-like coding," which i took to mean "using the OO paradigm in haskell." sorry if that's not what you meant.


I assume “object-like coding” just means “a data structure and a set of functions for interacting with it. Are you implying that the “right way” of using Haskell doesn’t do anything like that?




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

Search: