[#69084] [Ruby trunk - Feature #11124] [Open] [PATCH] lib/*: use monotonic clock for timeouts — normalperson@...
Issue #11124 has been reported by Eric Wong.
5 messages
2015/05/06
[#69138] [Ruby trunk - Feature #11136] [PATCH] webrick: avoid fcntl module — nobu@...
Issue #11136 has been updated by Nobuyoshi Nakada.
3 messages
2015/05/12
[#69160] [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start — nobu@...
Issue #11146 has been updated by Nobuyoshi Nakada.
4 messages
2015/05/13
[#69175] Re: [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start
— Eric Wong <normalperson@...>
2015/05/13
nobu@ruby-lang.org wrote:
[ruby-core:69191] [Ruby trunk - Feature #11105] [Rejected] ES6-like hash literals
From:
matz@...
Date:
2015-05-14 09:30:23 UTC
List:
ruby-core #69191
Issue #11105 has been updated by Yukihiro Matsumoto.
Status changed from Open to Rejected
I am not positive about this syntax mostly because it appears to be set syntax, or old style hash in 1.8.
Once ES6 syntax become more popular, there will be chance for this change in the future.
Matz.
----------------------------------------
Feature #11105: ES6-like hash literals
https://bugs.ruby-lang.org/issues/11105#change-52448
* 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/