Occasionally I want to write: def fn[T](t: (T, T)): T = t match { case (x, `x`) => x case _ => //... } But it won't happen. ;)
@viktorklang Yeah, that's what I *don't* want to write. ;) I remember odd results reusing identifiers in patterns when that was allowed...
-
-
@propensive (t._1, t._1) match { case `t` => t._1 case _ => // … } ;)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.