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>