並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 2 件 / 2件

新着順 人気順

ruby-nextの検索結果1 - 2 件 / 2件

  • MatzにrejectされたES6風HashリテラルをこっそりRubyで使う

    ES6風Hashリテラルとは ここで言う「ES6風Hashリテラル」というのは、ES6(ES2015)でobject property shorthandとして導入された省略記法です。 最近のJavaScriptを使っている人なら見慣れた記法ですね。Rubyでもこういう風に書けると便利そう、と思う人はもちろんいるわけで、この記法を取り入れるべく過去にもbugs.ruby-lang.orgで提案がありました。が、残念ながら今のところrejectされたままです。 Feature #11105 ES6-like hash literals https://bugs.ruby-lang.org/issues/11105 Feature #15236 add support for hash shorthand https://bugs.ruby-lang.org/issues/15236 似た記法

      MatzにrejectされたES6風HashリテラルをこっそりRubyで使う
    • Ruby Next: Make all Rubies quack alike—Martian Chronicles, Evil Martians’ team blog

      If you’re interested in translating or adapting this post, please contact us first. Meet Ruby Next, the first transpiler for Ruby that allows you to use the latest language features, including experimental ones, today—without the stress of a project-wide version upgrade. Read the story behind the gem, discover its inner workings, and see how it can help push Ruby into the future. These days, Ruby

        Ruby Next: Make all Rubies quack alike—Martian Chronicles, Evil Martians’ team blog
      1