On Thu, Apr 17, 2003 at 06:10:40AM +0900, Dave Thomas wrote:
> If I run
> 
>   while line = gets
>     puts(line) if line =~ /cat/ .. line =~ /dog/
>   end
> 
> with ruby -w, I get:
> 
>   t.rb:2: warning: range literal in condition
> 
> Does this mean I should deprecate the use of ranges in conditions?

I guess so.

[ruby-talk:62641]

|>   * discourage use of symbol variables (e.g. $/, etc.) in manual
|>   * discourage use of Perlish features by giving warnings.
|
|hm, i wonder what is the list of features that the author (matz?) decide 
|as perlish and should be discouraged.

 * symbol variables
 * regexp in conditional expression
 * range (../...) in conditonal expression

                                                        matz.

-- 
 _           _                             
| |__   __ _| |_ ___ _ __ ___   __ _ _ __  
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
	Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

We come to bury DOS, not to praise it.
	-- Paul Vojta, vojta / math.berkeley.edu