From: hipster Date: 2001-08-07T21:36:24+09:00 Subject: [ruby-talk:19285] Re: Help with ternary operator syntax and grammar On Tue, 07 Aug 2001 21:25:06 +0900, Ryo Furue wrote: > Hi there, > > I'm fairly new to Ruby and writing small scripts with the pickaxe > book. I can't understand what's wrong with this: > > cond = true > print (cond? ", " : "\n") ^^ insert a space here. Otherwise Ruby will interpret it as a call to the function 'cond?'. Question marks are allowed at the end of function names to indicate predicates. Your other examples were variations on this theme with differing precedences. Michel