Issue #12963 has been updated by Shyouhei Urabe.

Status changed from Feedback to Rejected

No use case so far.

----------------------------------------
Feature #12963: ?string longer than one char
https://bugs.ruby-lang.org/issues/12963#change-62172

* Author: Nobuyoshi Nakada
* Status: Rejected
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Target version: 
----------------------------------------
Now Symbol as keyword argument is often used, but a space is required between the label and the symbol literal.

```ruby
x.round(half: :up)
```

Or using a String argument,

```ruby
x.round(half:"up")
```

Both don't feel nice to me.

How about longer string literal by `?xxx`, which is currently restricted to just one character?

```ruby
x.round(half:?up)
```

patch: https://github.com/nobu/ruby/tree/feature/q-string




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>