Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rhizome
on Aug 12, 2019
|
parent
|
context
|
favorite
| on:
Monads as a Programming Pattern
>
A monad is a type that wraps an object of another type.
So, the Adapter Pattern, but for types?
Double_Cast
on Aug 12, 2019
[–]
Monadic is a type-class. Like how Equatable is a type-class. Adapters essentially add a specific type to the type-class the client is looking for.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
So, the Adapter Pattern, but for types?