From: Eric Wong Date: 2020-09-25T20:04:10+00:00 Subject: [ruby-core:100160] Re: [Ruby master Feature#16994] Sets: shorthand for frozen sets of symbols / strings 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: