[#69616] [Ruby trunk - Feature #11258] add 'x' mode character for O_EXCL — cremno@...
Issue #11258 has been updated by cremno phobia.
3 messages
2015/06/16
[#69643] [Ruby trunk - Misc #11276] [RFC] compile.c: convert to use ccan/list — normalperson@...
Issue #11276 has been updated by Eric Wong.
3 messages
2015/06/17
[#69751] [Ruby trunk - Bug #11001] 2.2.1 Segmentation fault in reserve_stack() function. — kubo@...
Issue #11001 has been updated by Takehiro Kubo.
3 messages
2015/06/27
[ruby-core:69471] Re: [Ruby trunk - Feature #11227] [Open] May it be possible to add some symbols to IO.new() ?
From:
Eric Wong <normalperson@...>
Date:
2015-06-05 22:42:45 UTC
List:
ruby-core #69471
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.