Created
October 12, 2016 22:49
-
-
Save johnjansen/1592c3a1f30785d4012272f1d3a9797e to your computer and use it in GitHub Desktop.
Hack to - Define a variable as a union type from the outset in crystal-lang
This file contains 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
some_var = [Int32.new(0), nil, ""].first |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment