My understanding of the print()
in both Python and Ruby (and other languages) is that it is a method on a string (or other types). Because it is so commonly used the syntax:
print "hi"
works.
So why doesn't "hi".print()
in Python or "hi".print
in Ruby work?