4 ms·
Yes, I was thinking that too. Hell, you can write: do_x if a.y? Unfortunately (or fortunately, depending on perspectiven- great power and all that), Ruby
by jwdunne 8y ago
Yes, I was thinking that too. Hell, you can write:
do_x if a.y?
Unfortunately (or fortunately, depending on perspectiven- great power and all that), Ruby allows things that Python doesn't and it's not hard to find yourself in a write-once mud bath.
I do like Python's modules over how Ruby handles them too. Ruby's import (require) is akin to C/C++, with modules as a separate idea. I prefer the style of importing exactly what you need.
But I know Ruby better so it's my go-to.