Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jonahx
on Oct 17, 2017
|
parent
|
context
|
favorite
| on:
Haskell Typeclasses vs. C++ Classes
> 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
on Oct 17, 2017
|
next
[–]
And that doesn't include first class functions inside of data structures? :)
jonahx
on Oct 17, 2017
|
parent
|
next
[–]
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.
Gaelan
on Oct 17, 2017
|
prev
[–]
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:
The better choice would be to use Haskell as it was intended to be used.