3 ms·
> they are the way to accomplish object-like coding in Haskell. > Actually, records with functions (closures) inside is usually a better choice: The better cho
by jonahx 9y ago
> 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.
- mbrock 9y agoAnd that doesn't include first class functions inside of data structures? :)
- jonahx 9y agoI 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.
- Gaelan 9y agoI 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?