From: dblack@... Date: 2007-01-04T22:12:01+09:00 Subject: Re: Little Things Hi -- On Thu, 4 Jan 2007, ara.t.howard@noaa.gov wrote: > On Thu, 4 Jan 2007, Rob Sanheim wrote: > >> 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. > > agreed. > >> As for protecting from people overriding it, I think having the >> underscore forms is enough. YSYEO ("You'll shoot your eye out.") I'm >> sure there are programs were object_id and other meta-methods are >> overridden. All you can do is warn people against doing it, test your >> code, and of course choose libraries that behave well. > > alternatively, it can be externalized so no matter how hard you muck about > with objects you cannot break certain unalienable behvaiours we desire them > to > have. Do you really think no one will ever do: def Pervasives.send # ... end ? :-) 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)