Discovery: Scala's `unary_?` methods are somewhat (but not completely) unique in that they can be defined to take an implicit parameter block which you can't call explicitly, either deliberately (without rewriting) or by accident.
-
-
`Foo.unary_~[String]`?
-
Yep, that was what I was trying to say when I said "rewriting".
@StefanZeiger also just pointed out that this is true of all infix operators. - Show replies
New conversation -
-
-
I discovered too that ? is a finite subset defined internally of IIRC 4 symbols instead of something we can override or extend :(
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.