From: Austin Ziegler Date: 2004-10-12T02:04:00+09:00 Subject: Re: quality of error messages On Fri, 8 Oct 2004 08:36:27 +0900, markus@reality.com wrote: > That said, it really doesn't hurt as bad as you'd think it would, > since the main thing people differ on is where to put the closing token > (e.g., does the "end" or "}" go at the indentation of the enclosed block > or the inclosing block) and that issue vanishes if you don't have closing > tokens. I suspect that (if warned) most rubiests would find: > > class My_class > attr_reader :an_atribute > def initialize a1,a2 > @an_attribute = a1 > @counter = 0 > @limit = a2 > def feed_the_lion food > raise "Roar" unless food.respond_to? :digestible_by > raise "Grrr" unless food.digestible_by self > digest food > > waffle = My_class.new :fred,14 > > perfectly readable (and writable) without all the syntactic clutter/noise. I don't find it readable at all. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca : as of this email, I have [ 6 ] Gmail invitations