I guess I'm used to the &&, || v and, or thing as a long time Perl programmer, but why not use them as they are made?
&&, || : normally. and, or : when you specifically want the lower precedence operator. The language specification gives them particular (and useful) meaning, I don't think you want to attach meaning to them beyond what they were intended to carry. Cheers, Mark. On 6/1/07, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote: > Alexey Verkhovsky wrote: > > Personally, I like 'and' and 'or' because it often reads better than && > > and ||. > > Especially in statement like > > redirect_to :action => "show" and return > > or > > foo = find_foo or raise 'Foo not found' > > I'm not opposed to and/or for these cases. Perhaps it's better to say > "always use && and || for logical test purposes" and allow 'and' and > 'or' to be used for purely flow-control related purposes. > > - Charlie > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > -- View this message in context: http://www.nabble.com/JRuby-Style-Guide-tf3627654.html#a10905802 Sent from the JRuby - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
