From: dblack@... Date: 2007-01-05T00:09:36+09:00 Subject: Re: Little Things Hi -- On Thu, 4 Jan 2007, Trans wrote: > > dblack@wobblini.net wrote: >> Hi -- >> >> On Thu, 4 Jan 2007, Rob Sanheim wrote: >> >>> If a ruby newbie tried "send" and saw it fail due to a private method, >>> I bet once they saw "send!" in the docs or in irb they would >>> immediately know how it works. Its aligns perfectly with many other >>> things in the std lib, and fits perfectly with POLS. >> >> I'll add that if a nuby tries "send", said nuby had better realize >> that it is using a fairly powerful technique and would be well advised >> to educate itself fully about it. > > True for "instance sending" (eg funcall/send!/etc.), but is #send > really all that? Isn't it just a dynamic dot? If what you say is true > then why not: > > obj.call! message > > and > > obj.fcall! message I'm afraid I don't follow at all. > And extrapolating over the whole board of Ara's Pervasives: > > id! > class! > methods! > ...etc... > > "!" means powerful! It means "dangerous", and I'm not sure what a dangerous id or class method would be. David -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)