J
Joachim Wuttke
Hi Ruby developers,
after spending some time with Perl and Python, I am
currently exploring Ruby. While I am quite enthusiastic
about some of its features, I am increasingly preocuppied
about the difficulties to localize errors.
Example 1: missing "end" in <last-line-of-code>
-> I forget to close a "class" or a "do" or a "if" block -
but which one ? Shouldn't the system be able to name
possible locations of unclosed block openings ?
Example 2: NoMethodError: undefined method.
-> Wrong, I defined the method. I just forgot to
include it in the attr_reader list. The system
shouldn't mislead me.
Developers, do you share my opinion that this would
be worth working upon ? I would really like to hear that
error messages will improve in future versions of the
interpreter.
Once I open a Ruby/Tk session, error messages are
redirected to an annoying popup window. Can I disable
this behavior ? I would prefer to see errors in stdout,
even when I am running a GUI.
Regards, Joachim
after spending some time with Perl and Python, I am
currently exploring Ruby. While I am quite enthusiastic
about some of its features, I am increasingly preocuppied
about the difficulties to localize errors.
Example 1: missing "end" in <last-line-of-code>
-> I forget to close a "class" or a "do" or a "if" block -
but which one ? Shouldn't the system be able to name
possible locations of unclosed block openings ?
Example 2: NoMethodError: undefined method.
-> Wrong, I defined the method. I just forgot to
include it in the attr_reader list. The system
shouldn't mislead me.
Developers, do you share my opinion that this would
be worth working upon ? I would really like to hear that
error messages will improve in future versions of the
interpreter.
Once I open a Ruby/Tk session, error messages are
redirected to an annoying popup window. Can I disable
this behavior ? I would prefer to see errors in stdout,
even when I am running a GUI.
Regards, Joachim