Dave Thomas wrote:
> Renaud HEBERT <renaud.hebert / alcatel.fr> writes:
>
> > While the point 10 may not be important enough to warrant such a change,
> > I still do think that the point 20) is important: maybe adding
> > additional methods getps and getpline (with p for portability) which
> > gives only the line and not the end-of-line would be enough if the
> > documentation explains the portability risk of gets and getline..
>
> I'd much, much rather see a IO#autochomp= method.
>
> To be honest, I'm surprised at how rarely I end up using chomp. I used
> to use it all the time in Perl. I'm not sure why Ruby is different.
>
> Dave
I don't like the idea of some kind "global state variable" which would
impact the semantic of gets and getline.
It may give all sorts of problems, so it wouldn't be used.
--
Renaud Hebert
phone: (33) 01 30 77 59 92mailto:renaud.hebert / alcatel.fr