Skip to content

Instantly share code, notes, and snippets.

@shelvacu
Created March 8, 2016 05:11
Show Gist options
  • Save shelvacu/43ba3f0a8eb114f78c18 to your computer and use it in GitHub Desktop.
Save shelvacu/43ba3f0a8eb114f78c18 to your computer and use it in GitHub Desktop.
Proof that ruby is absolutely superior to python /sarcasm
a = []
a.append(a)
b = []
b.append(b)
print(a == b) #=> RecursionError: maximum recursion depth exceeded in comparison
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