From: "David A. Black" Date: 2008-04-11T17:45:07+09:00 Subject: Re: syntax request Hi -- On Fri, 11 Apr 2008, Rick DeNatale wrote: > On Wed, Apr 9, 2008 at 11:24 PM, Phlip wrote: >>> This is one use of method chaining I dislike. >> >> The use I like is as a DSL. q.left.up.twist.link(q) for a turtle >> graphics, for example. > > This relies, of course, on the convention that each of the methods you > string together returns self (or the turtle in this case). Or some proxy object that knows about q but also has some sense of 'up' based on the current state. I've.never.liked.the.magic.dot :-) But we're probably on ruby-talk terrain at this point.... David -- Rails training from David A. Black and Ruby Power and Light: ADVANCING WITH RAILS April 14-17 New York City INTRO TO RAILS June 9-12 Berlin ADVANCING WITH RAILS June 16-19 Berlin See http://www.rubypal.com for details and updates!