matz / zetabits.com (Yukihiro Matsumoto) writes:

> OK.  But unlike readlines and each, read is not fundamentally for
> reading whole file.  What kind of method do you want?
> 
>   (a) exactly like:
> 
>         f = open(path)
>         begin
>           f.read(*args)
>         ensure
>           f.close
>         end
> 
>   (b) takes no argument, to read whole file always.
> 
>   (c) something else.

Hi Matz:

I'd vote for 'a'.


While we're talking about IO, what do you think about starting to
deprecate the "|" form of the various IO:: and Kernel.open calls, and
instead favoring IO::popen? The "|" forms are a definite Perl-ism.


Dave