From: "David A. Black" Date: 2003-11-28T12:29:10+09:00 Subject: Re: pre/post question/idea Hi -- On Fri, 28 Nov 2003, David Naseby wrote: > >-----Original Message----- > >From: David A. Black [mailto:dblack@wobblini.net] > > class C > > def x > > puts "how are you?" > > end > > > > pre x > > puts "hello" > > end > > > > post x > > puts "goodbye" > > end > > end > > > I agree that it looks better, but my eyes completely skipped over the > replacement def's. I thought you were just def-ing the same thing 3 times, > and were depending on order to distinguish them, which is obviously a silly > idea. > > Nothing against this idea, just noting how my brain reads Ruby code right > now. The x:*** syntax screams special case to me, and this doesn't. My concern is that, as people get used to doing this, x:*** will cease to be a special case, but will still look like one :-) David -- David A. Black dblack@wobblini.net