This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: Re: Any way to get the effect of Option without always explicitly using Some or None?

No replies
Tony Morris
Joined: 2008-12-19,
User offline. Last seen 30 weeks 4 days ago.

Just to be clear, you can always get away from explicit constructor use with a combination of map and getOrElse. The question is whether or not there exists a suitable specialisation for your use-case. Without looking, and for Option, the answer is almost always yes. If you can be specific for the use-case we may be able to critique it.

Hoping to finish the chapter on monoids today.

On 03/09/2011 7:55 AM, "Ken McDonald" <ykkenmcd [at] gmail [dot] com> wrote:

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland