a Python person's experience with Ruby
Colin J. Williams
cjw at sympatico.ca
Sat Dec 8 10:23:59 EST 2007
Steve Howell wrote:>
Thanks for the interesting comparison.
[snip]
> 3) I actually like being able to omit parentheses in
> method definitions and method calls. In Ruby you can
> express "add(3,5,7)" as both "add(3,5,7)" and "add 3,
> 5, 7." The latter syntax is obviously more error
> prone, but I don't think I've ever actually gotten bit
> by it, and the code appears more clean to me.
>
[snip]
I'm not sure that I like add 3, 5, 7
but it would be nice to be able to drop
the parentheses
when no argument is required.
Thus: close;
could replace close();
Colin W.
More information about the Python-list
mailing list