Hi,
In message "Re: anything disappearing from Ruby for 2.0?"
on 03/12/01, Carlos <angus / quovadis.com.ar> writes:
|Hi :) Here's another idea:
|
|1) Make #.. a method (Integer#.. creates ranges, for example)
|
|2) Make a shortcut to proc {...} (maybe "&{"? Anything, I don't know)
|
|3) Define Proc#.. to work as a flip-flop
|
|4) while &{ line =~ /abc/ }..&{ line =~ /def/ }
|
|Not as easy as before, but almost...
|
|What do you think?
I like the basic idea. the "shortcut notation" would be a key. I
couldn't think of a good one for years. But someone might be able to.
matz.