From: Robert Klemme Date: 2004-04-14T18:39:23+09:00 Subject: Re: include? needs parentheses? "Gavin Sinclair" schrieb im Newsbeitrag news:50505.129.78.228.114.1081916392.squirrel@webmail.imagineis.com... > I find this kind of odd. > > $ ruby -w > puts([1,2,3].include? 1) > -:1: warning: parenthesize argument(s) for future version > true > > Surely there's no ambiguity in that expression. What principle is at work > here? > > Sorry if this is similar to other cases already discussed. I was paying > attention, but those cases seemed more ambiguous, hence the warning. I can only guess: maybe it's because the line "puts([1,2,3].include? 1,2)" would be amiguous? robert