From: Aleksei Guzev Date: 2002-11-19T14:48:39+09:00 Subject: Re: ruby-dev summary 18711-18810 "Yukihiro Matsumoto" wrote in message news:1037682098.970812.11088.nullmailer@picachu.netlab.jp... > Hi, > > In message "Re: ruby-dev summary 18711-18810" > on 02/11/19, "Aleksei Guzev" writes: > > |Hiding error means one would receive diagnostic message of TypeError while > |the error is not of that type. It's an index error. This will make locating > |bugs harder. > > But it happens all the time in dynamic languages. Why this bothers > you so much? > All the time people die in auto crashes. But noone says 'Let them die...' If there exists an opportunity to work around this issue, why not to do this? Of course, I understand there could be some problems implemeting raising exceptions. > |Violation means that one calling "zip" will get an exception regardless of > |what method has raised it. It doesn't matter who raised an exception. > |Matters its nature and its origin in the user code(!), not library one. > > You can always get the error position in the user code, either in > stack trace in the error message, or in caller information. > > matz. >