[ruby-core:78233] [Ruby trunk Feature#12963] ?string longer than one char
From:
nobu@...
Date:
2016-11-21 12:53:16 UTC
List:
ruby-core #78233
Issue #12963 has been reported by Nobuyoshi Nakada. ---------------------------------------- Feature #12963: ?string longer than one char https://bugs.ruby-lang.org/issues/12963 * Author: Nobuyoshi Nakada * Status: Open * Priority: Normal * Assignee: ---------------------------------------- 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:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>