From: Piers Cawley Date: 2001-08-07T19:56:02+09:00 Subject: [ruby-talk:19281] Re: Some remarks from a nembie in Ruby Renaud HEBERT writes: > Dave Thomas wrote: > > Renaud HEBERT 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. Global would be bad. Per IO object is surely the way to go. -- Piers Cawley www.iterative-software.com