This page is no longer maintained — Please continue to the home page at www.scala-lang.org
> > In the cases I use 'get' without checking I *want* a runtime error. It> > means I made a wrong assumption in my code and it better fail fast.> On 08/13/2010 05:06 PM, Nils Kilden-Pedersen wrote: Um, wouldn't you prefer that the *compiler* might tell you that your code has a bug in it?
> 100% agreed. I also use Option.get as a shortcut for: > {assert(!Option.isEmpty); Option.get}I am managing to completely avoid using Option.get - I must be doing it wrong!
Create new account
Retrieve lost password
Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland
Oh sure, and how do you propose it should do that? (BTW, you don't know my use case)
Not wrong, just different use case.