From: Friedrich Dominicus Date: 2003-03-14T15:20:32+09:00 Subject: Re: Ruby / Eiffel ? "Jason M Jurkowski ;002;icsg6;" writes: > On Fri, 14 Mar 2003, Ryan Pavlik wrote: > > > On Fri, 14 Mar 2003 05:59:33 +0900 > > "Jason M Jurkowski ;002;icsg6;" wrote: > > > > > also, related, does anyone know if there is a good reason for the absense > > > of assertions in ruby? > > > > Assertions? You mean like in C? > exactly. i believe eiffel makes a big deal about them as part of "design > by contract" You will compare Cs assert with Eiffels DBC? > > > > > i'm guessing it is a conscious decision. > > > > Probably because there are exceptions. ;-) You could always do: > > > > def assert(conditional) > > raise "Assertion failed" if not conditional > > end You always can raise Exceptions in Eiffel too. The are not as good as in Ruby, but still "good enough". Regards Friedrich