On Wed, 31 Mar 2004, Tanaka Akira wrote:

> In article <Pine.LNX.4.44.0403310557190.17153-100000 / fattire.ngdc.noaa.gov>,
>   "Ara.T.Howard" <ahoward / fattire.ngdc.noaa.gov> writes:
> 
> >> [ruby-dev:23247] IO#readpartial
> >> 
> >>   TANAKA Akira suggested a new method IO#readpartial, which is
> >>   a better sysread() implementation supporting stdio buffer and
> >>   avoiding troubles due to non-blocking I/O.
> >
> > this would be an awesome addition to the stdlib - i need this at least once
> > per week...
> 
> readpartial is rejected because matz doesn't like the name.

matz, how about

  IO#head

or

  class IO
    AVAILABLE = -1
    IO#read(AVAILABLE)
  end

or

  IO#skim

i'm dying for this - i'm reduced to character IO at times...

-a
-- 
===============================================================================
| EMAIL   :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE   :: 303.497.6469
| ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
| URL     :: http://www.ngdc.noaa.gov/stp/
| TRY     :: for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done 
===============================================================================