Skip to content

Instantly share code, notes, and snippets.

@bdkosher
Created September 14, 2015 13:31
Show Gist options
  • Select an option

  • Save bdkosher/e767587f25647ccac878 to your computer and use it in GitHub Desktop.

Select an option

Save bdkosher/e767587f25647ccac878 to your computer and use it in GitHub Desktop.
Some fun with Groovy metaprogramming and operator overloading. Tohu vavohu!
Class.metaClass.and << { arg -> false }
org.codehaus.groovy.runtime.NullObject.metaClass.and << { arg -> false }
assert (void & null) == (null & void)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment