3 ms·
And you could use {} instead of do/end, but a Pythonista wouldn't consider that any more terse.
by steveklabnik 17y ago
And you could use {} instead of do/end, but a Pythonista wouldn't consider that any more terse.
- showell 17y agoYep, my mention of do/end or squigglies was just a caveat on the Ruby-is-more-terse-in-this-example statement in the context of anonymous functions or blocks. I wish there was a language that won on both terseness metrics--i.e. a Ruby with indentation or a Python with anonymous functions.