[#99868] [Ruby master Bug#17144] Tempfile.open { ... } does not unlink the file — eregontp@...
Issue #17144 has been reported by Eregon (Benoit Daloze).
15 messages
2020/09/03
[ruby-core:100160] Re: [Ruby master Feature#16994] Sets: shorthand for frozen sets of symbols / strings
From:
Eric Wong <normalperson@...>
Date:
2020-09-25 20:04:10 UTC
List:
ruby-core #100160
matz@ruby.or.jp wrote:
> Remaining issues:
>
> * Name? `%ws` would be the first two character specifier after `%`. Is it reasonable? Or should we seek another name?
> * Frozen? `%w` returns non frozen array of non frozen strings. How should `%ws` behave?
How about suffix notation similar to Regexp modifiers?
[ 'foo', 'bar' ]s
Or with ability to specify ordering:
[ 'foo', 'bar' ]os # ordered set
[ 'foo', 'bar' ]us # unordered set
Fwiw, I sometimes wish I could use unordered hash to save space:
{ 'foo' => 'bar' }u
And maybe 'f' modifier for frozen strings of values
> https://bugs.ruby-lang.org/issues/16994#change-87685
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>