Hacker News new | past | comments | ask | show | jobs | submit login

Monads without proper syntax (do-notation) are kinda ugly though

If I didn't learn monads with haskell before, I would think that monads is some useless boilerplate abstraction




https://godbolt.org/z/9zsesq5dh

you are welcome.

[support for all monads, or, you know, actual monad semantics left as an exercise to the reader]


The dot notation for chaining calls on monads works fine.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: