From: "naruse (Yui NARUSE)" Date: 2013-10-01T17:10:46+09:00 Subject: [ruby-core:57532] [ruby-trunk - Feature #8807] Custom literals Issue #8807 has been updated by naruse (Yui NARUSE). Target version changed from current: 2.1.0 to Next Major ---------------------------------------- Feature #8807: Custom literals https://bugs.ruby-lang.org/issues/8807#change-42146 Author: trans (Thomas Sawyer) Status: Open Priority: Normal Assignee: Category: core Target version: Next Major So why can't we define custom literals? There's been recent discussion about adding a new freeze literal. Would have been nice if coders could have defined it for themselves, then it would have been more clear if there really was enough use to add it to core. I imagine the syntax of such a feature to be quite simple. def %foo(string, mod=nil) p [string, mod] end %foo{something}o => ["something", "o"] -- http://bugs.ruby-lang.org/