[#927] UnboundMethod#to_proc — Dave Thomas <dave@...>

I'm wondering what I can do with a Proc generated by

17 messages 2003/04/06

Re: Range in logical context

From: Dave Thomas <dave@...>
Date: 2003-04-16 22:55:46 UTC
List: ruby-core #966
On Wednesday, April 16, 2003, at 04:46 PM, Mauricio Fern疣dez wrote:
>> Does this mean I should deprecate the use of ranges in conditions?
>
> I guess so.
> * range (../...) in conditonal expression
>                                                     matz.
>

I assumed that was referring to stuff with an implicit $_ or $., such as

   print if 10..20

or

   print if /cat/../dog/

I'm not sure I see the reason for deprecating the more general form.

Cheers


Dave



In This Thread