From: Gavin Sinclair Date: 2004-01-18T09:31:27+09:00 Subject: Re: long expression syntax On Sunday, January 18, 2004, 10:59:05 AM, Jamis wrote: > messju mohr wrote: >> >>i also get one if i run >>puts 1 if ( a == b >> or a == c ) >> >>maybe just because "or" is an operator and "a" isn't. i avoid newlines >>inside ruby-statements because i don't know the rules i have to >>obey. where are they stated? >> >> > I don't know where they are authoritatively stated, except in the Ruby > source code. ;) "or" is, indeed, an operator. So are '==', '+', 'and', > '&&', 'not', '!', '=~', and so forth. == and + (among others) are methods, not operators. Gavin