Created
September 14, 2015 13:31
-
-
Save bdkosher/e767587f25647ccac878 to your computer and use it in GitHub Desktop.
Some fun with Groovy metaprogramming and operator overloading. Tohu vavohu!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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