Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

17
  • 4
    In this case, I think the Scala went with the better name of Some as opposed to None (not saying it's Scala's invention). Commented Jul 28, 2017 at 0:32
  • 3
    @AndresF. It goes back at least to ML which Odersky was definitely very familiar with. Commented Jul 28, 2017 at 3:17
  • 2
    @RobertHarvey If a Haskeller was using Maybe as a monad, they would likely use return and probably something like mzero instead of Nothing. When Just is used directly, usually Maybe isn't being used in monadic style at that point. Commented Jul 28, 2017 at 3:20
  • 2
    The historical precedent would have been the Option type. The designers of Haskell probably felt that foo x = Just x "read" better than foo x = Some x. Similarly, the definition data Maybe a = Just a | Nothing reads pretty well as "Maybe a is either Just a or it's Nothing". Some reads reasonably well there, but None doesn't for data Option a = Some a | None. Commented Jul 28, 2017 at 3:22
  • 3
    They are still alive. You can email people like Phil Wadler and Simon Peyton Jones and ask them. Or try the Haskell-Cafe mailing list. Commented Jul 28, 2017 at 3:23