In #Scala, when defining a method that takes a function parameter, you can supply a default value for the function: http://goo.gl/7MY2T3
-
-
Replying to @alvinalexander
@alvinalexander is using default parameters idiomatic in scala? Or can default args contribute to mistakes?1 reply 0 retweets 0 likes
Replying to @Gentmen
@Gentmen @alvinalexander It's much preferred to multiple overloads. In general, it's reasonably safe. *Changing* default parameters less so.
7:16 PM - 1 Dec 2014
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.