What's TOTALLY COMPELLING about Ruby over Python?
nika at kassube.de
Fri Aug 22 16:14:12 CEST 2003
Roy Smith <roy at panix.com> writes:
> I suppose this is nice, but does it really give you anything you
> couldn't get in a slightly different way by just enclosing the whole try
> construct in a loop?
You are correct. The exception handling in Python is as powerful as in
Ruby. However, Ruby's way seems more beautiful to me. Another example:
in Python you have to nest multiple try/except statements, in Ruby you
can have multiple rescue blocks. It just looks better. (For my eyes.)
More information about the Python-list