From: Eric Wong Date: 2015-06-05T22:42:45+00:00 Subject: [ruby-core:69471] Re: [Ruby trunk - Feature #11227] [Open] May it be possible to add some symbols to IO.new() ? shevegen@gmail.com wrote: > IO.new() wants a number. > > io = IO.new(1) > > Would it be possible or desirable to also allow symbols? > > Such as: > > io = IO.new(:stdout) > > The :stdout seems to make it slightly easier for me > to remember which of the variants (0,1,2) is which > (stdin, stdout, stderr). I don't see the point. Why not use existing STDIN, STDOUT, STDERR (or $stdin, $stdout, $stderr)? No need to allocate new IO objects.