From: Bill Atkins Date: 2005-08-04T03:51:00+09:00 Subject: Re: Style question: when to use underscores ------=_Part_1042_258512.1123095040668 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline It's generally better practice to use "__send__" to preven name clashes wit= h=20 methods named "send". Using #__send__ helps ensure that you're actually=20 sending a message to the object rather than calling a user-defined method= =20 that does something totally different (like Socket#send in the standard=20 library). Bill On 8/3/05, Mohammad Khan wrote: >=20 > On Tue, 2005-08-02 at 19:09 +0900, Florian Frank wrote: > > On 2005-08-02 16:26:04 +0900, EdUarDo wrote: > > > francisrammeloo@hotmail.com wrote: > > > >When should you use underscores to > > > >separate words in variable names or > > > >function definitions? Always? > > > > > > Never, I use capital letters to separate words. > > > > I use spaces to separate words: > > > > class A > > define_method('foo bar') do > > 'foo bar' > > end > > end > > A.new.__send__ 'foo bar' >=20 > why not, just A.new.send 'foo bar' ? >=20 > MOhammad >=20 >=20 > > > > I think, you should use my way, too. >=20 >=20 >=20 >=20 --=20 Bill Atkins ------=_Part_1042_258512.1123095040668--