[#48926] doc/extension.ja.rdoc 査読依頼 — Yugui <yugui@...>

doc/extension.ja.rdoc

12 messages 2015/04/12
[#48930] Re: doc/extension.ja.rdoc 査読依頼 — SASADA Koichi <ko1@...> 2015/04/13

 ドキュメントまとめて頂いて、ありがとうございます。多分、それなりに知っ

[ruby-dev:48949] [Ruby trunk - Feature #11104] [Rejected] ES6-like hash literals

From: shugo@...
Date: 2015-04-29 00:30:21 UTC
List: ruby-dev #48949
Issue #11104 has been updated by Shugo Maeda.

Status changed from Open to Rejected

すみません、ruby-devになってしまったので出しなおします。

----------------------------------------
Feature #11104: ES6-like hash literals
https://bugs.ruby-lang.org/issues/11104#change-52268

* Author: Shugo Maeda
* Status: Rejected
* Priority: Normal
* Assignee: 
----------------------------------------
Why not support ECMAScript6-like hash literals?

For example,

    {x, y}

is equivalent to:

    {x: x, y: y}

For convenience, the prefix of global, instance, and class variables should be removed from the key name as follows:

    a = 1
    B = 2
    $c = 3
    @d = 4
    @@e = 5
    p({a, B, $c, @d, @@e, f: 6})
    #=> {:a=>1, :B=>2, :c=>3, :d=>4, :e=>5, :f=>6}


---Files--------------------------------
0001-support-ES6-like-hash-literals.patch (3.88 KB)


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

In This Thread

Prev Next