News for hackers. Stuff that matters.
Re:On Scala by anonymoushn on Wednesday June 19, 2013 @04:06AM (#5904292)
There seem to be some problems in the examples.

  scala> def theSquareMullet(i:Int) = i * i
  theSquareMullet: (i: Int)Int
  
  scala> def theHoffSquareMullet({ mullet: => Int }) = mullet * mullet
  <console>:1: error: identifier expected but '{' found.
       def theHoffSquareMullet({ mullet: => Int }) = mullet * mullet
                               ^
  
  scala> def theHoffSquareMullet(mullet: => Int) = mullet * mullet
  theHoffSquareMullet: (mullet: => Int)Int
  
  scala> theSquareMullet(theHoffSquareMullet(10))
  res0: Int = 10000

There are no comments on this comment yet.