1 Oct 2004 04:02
Re: duplication in method & parameter names
Ron Jeffries <jeffries <at> dundee.net>
2004-10-01 02:02:11 GMT
2004-10-01 02:02:11 GMT
On Thursday, September 30, 2004, at 5:48:50 PM, J. B. Rainsberger wrote: > Buddha Buck wrote: >> You Smalltalkers might sell me on the idea of Smalltalk afterall. For >> some reason >> >> send thisEmail: confirmationEmail toServer: someServer >> >> reads even better to me. >> >> (Even so, that looks like it should read: confirmationEmail sendTo: >> someServer) > I prefer this, if only because it's possible to send an e-mail to > something other than a server, and if that something-else knows how to > respond, then so much the better. There's an abstraction missing, and > someday it'll pop up, or we'll die -- whichever comes first. :) The second form has the additional value that it is legal smalltalk, and unless send is an object, the first one isn't ... :) Ron Jeffries www.XProgramming.com Keep away from people who try to belittle your ambitions. Small people always do that, but the really great make you feel that you, too, can become great." -- Mark Twain. ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/umvwlB/TM(Continue reading)
RSS Feed