Naming stuff is hard, but more fun than cache invalidation. implicit class BooleanExt(val bool: Boolean) extends AnyVal { def ergo[T](t: T): Option[T] = if(bool) Some(t) else None } if(me.thinks) Some(me) else None or, me.thinks.ergo(me)
-
-
Where does the name "ergo" come from ?
-
It's Latin, but is used occasionally in English, to the extent that it's English now. https://en.wiktionary.org/wiki/ergo
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.