News for hackers. Stuff that matters.
Re:A Gentle Intro to Monads … Maybe? by saryant on Friday January 17, 2014 @11:22AM (#7076561)
I'm not sure about that. Scala's Option monad is just a class in the standard library, not a language feature.

http://www.scala-lang.org/api/current/index.html#scala.Optio...

Re:A Gentle Intro to Monads … Maybe? by Mithaldu on Friday January 17, 2014 @11:34AM (#7076638)
I'll be honest, i have no idea what any of the stuff written on that page means. Can you show me the implementation of that class in pure Scala code?
Re:A Gentle Intro to Monads … Maybe? by saryant on Friday January 17, 2014 @11:35AM (#7076646)
Here's the implementation: https://github.com/scala/scala/blob/v2.10.3/src/library/scal...

(FYI, many Scaladocs have links back to the code on Github)

Re:A Gentle Intro to Monads … Maybe? by Mithaldu on Friday January 17, 2014 @11:47AM (#7076721)
Alright, so it really is just a Scala class with some handy shortcuts. Please do note though that the docs you linked do not think it is a monad, just that it's easy to think of it as one.

Edit: In fact, it kinda smells like how Perl works when you do this:

    no warnings 'undefined';
Re:A Gentle Intro to Monads … Maybe? by frowaway001 on Friday January 17, 2014 @10:47PM (#7079982)
> Please do note though that the docs you linked do not think it is a monad, just that it's easy to think of it as one.

Heh?