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

In a strict (as opposed to lazy) non-functional language monads make no sense. Write two statements which uses a temp variable on the same line, separated by a semicolon - this is your monad.



No way. While I do agree monads don't make sense in some imperative languages, writing two statements on the same line is not a monad.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: