Created
March 8, 2016 05:11
-
-
Save shelvacu/43ba3f0a8eb114f78c18 to your computer and use it in GitHub Desktop.
Proof that ruby is absolutely superior to python /sarcasm
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
a = [] | |
a.append(a) | |
b = [] | |
b.append(b) | |
print(a == b) #=> RecursionError: maximum recursion depth exceeded in comparison |
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
a = [] | |
a << a | |
b = [] | |
b << b | |
puts a == b #=> true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment