From: Patrik Sundberg Date: 2002-02-27T06:12:31+09:00 Subject: Re: RCR?: parallel to until: as_soon_as On Wed, Feb 27, 2002 at 06:01:18AM +0900, Tobias Reif wrote: > Hi, > > would this be worth an RCR? > > We have > until > ; how about adding > as_soon_as > ? > > for example > > as_soon_as @line_count > max > raise 'too many lines' > end > > There are ways to achive the same effect, but as_soon_as (or any other > equivalent name) might express the intent clearer. the word you're looking for is the while-loop common to many languages and it is magically enough already present in ruby too. :) -- ---------------------------------------------------------------------------. Patrik Sundberg Address: Rydsv�gen 100C, 584 31 Link�ping, Sweden | Email: ps@raditex.se || ps@radiac.mine.nu | Phone: +46 13 178567 || +46 707 602240 | .---> Applied Physics and Electrical Engineering student | |-----> Master of Science in Business Administration and Economics student | |-------> UNIX/Programming consultant | `--------------------------------------------------------------------------'