What about the following expression in #Scala? Is this legal? What's the result?
scala> val a :: b, Seq(c, d, _*) = List(1,2,3,4,5)
@jaceklaskowski I could certainly improve it with better comments on the weird stuff. Code with *uses* Rapture should be idiomatic, though.
-
-
@propensive Wonder if such a "trade" is common or unavoidable - readable sources vs idiomatic use. -
@jaceklaskowski You definitely don't always have that tradeoff. But often find yourself pushing complexity ("weirdness") to lower levels.
End of conversation
New conversation -
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.