Skip to content

Instantly share code, notes, and snippets.

View michaeldfallen's full-sized avatar

Michael Allen michaeldfallen

View GitHub Profile
@michaeldfallen
michaeldfallen / gist:4565244
Created January 18, 2013 15:18
Booleans, the way Borat would like them
class BoratBoolean(b: Boolean) {
lazy val not = !b
def naaat() = not
//Lazy eval, to wait as long as possible before the NAAT
}
implicit def kazakhstaniBoolean(b: Boolean) = new BoratBoolean(b)
usage: