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 Maybe that's unfair on my own code, but it's optimised heavily for the use sites at the expense of the definition sites.
-
-
@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. - Show replies
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.