Actions
Feature #12963
closed?string longer than one char
Description
Now Symbol as keyword argument is often used, but a space is required between the label and the symbol literal.
x.round(half: :up)
Or using a String argument,
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?
x.round(half:?up)
Updated by matz (Yukihiro Matsumoto) over 7 years ago
- Status changed from Open to Feedback
- Assignee set to matz (Yukihiro Matsumoto)
Since ?up gives a string "up", it cannot be a replacement for :up symbol.
If someone come up with an use-case for this multi-character ? string literal, I will reinvestigate.
Matz.
Updated by nobu (Nobuyoshi Nakada) over 7 years ago
- Related to Feature #12978: Symbol after keyword added
Updated by shyouhei (Shyouhei Urabe) over 7 years ago
- Status changed from Feedback to Rejected
No use case so far.
Actions
Like0
Like0Like0Like0