When coding in Haskell it is helpfull to define function results as "undefined" while you write the skeleton of your application. That way the executable compiles and let's you work in order parts/cases under your attention.
Is there any equivalent thing in Scala? I'd like to write something similar to:
def notAbleToWriteThisYet = undefined
def notAbleToWriteThisYet = sys.error("todo")
Also see this thread on the mailing list.
Scala 2.10.0-M1:
def notAbleToWriteThisYet = ???
(defined in Predef.scala
as def ??? : Nothing = throw new NotImplementedError
.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With