From: Caleb Clausen Date: 2005-06-03T00:31:08+09:00 Subject: Re: ternary operator confusion Eric Mahurin wrote: > f (a)+0, b # *** now (a) looks like the args to f*** This gives a warning, at least. > respond_to?:test # syntax error, why? Works for me.... Hal Fulton wrote: > def mymeth a,b,c # this always makes me blink I first discovered this is possible when RubyLexer tripped over a specimen of code that was using it. Little mysteries like this were part of what made RubyLexer such an, ah, joy to write. (Yeah, that's one word for it.) Now I use this sometimes myself, mostly to create more test cases for RubyLexer, since def headers in particular are tricky. It can be convenient when playing around in irb.