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

Scala's for comprehensions resemble Haskell's do-notation quite well. So there is some syntax to work with monads in Scala.

The big difference is that Scala's for isn't guarantied to be a pure expression.



I just wish for..yield didn't look quite so much like a loop.




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

Search: