<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Le 06/02/2017 à 17:59, Ryan Birmingham
      a écrit :<br>
    </div>
    <blockquote
cite="mid:CAJU2dcpURi+CkMZHMg22BUuHVuXdmBeXZsyo1shCNtiQxioytw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello all,
        <div><br>
        </div>
        <div>I frequently find myself desiring a short array or
          generator comprehension syntax. I'm aware that there are
          functional ways around use of comprehension syntax, but I
          personally (at least) love the syntax in the ES reference (<a
            moz-do-not-send="true"
href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Array_comprehensions">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Array_comprehensions</a>).</div>
        <div><br>
        </div>
        <div>The best previous discussion on this that I found was six
          years old (<a moz-do-not-send="true"
            href="https://esdiscuss.org/topic/array-comprehensions-shorter-syntax">https://esdiscuss.org/topic/array-comprehensions-shorter-syntax</a>)
          and answers some of my questions, raising others. That said, I
          wanted to ask:</div>
        <div>
          <ul>
            <li>Why is the Comprehension Syntax in the reference yet not
              more standard? It feels almost like a tease.</li>
          </ul>
        </div>
      </div>
    </blockquote>
    Proposals to change the standard are listed here :<br>
    <a class="moz-txt-link-freetext" href="https://github.com/tc39/proposals">https://github.com/tc39/proposals</a><br>
    The process for a feature to become standard is described here : <br>
    <a class="moz-txt-link-freetext" href="https://tc39.github.io/process-document/">https://tc39.github.io/process-document/</a><br>
    <br>
    <blockquote
cite="mid:CAJU2dcpURi+CkMZHMg22BUuHVuXdmBeXZsyo1shCNtiQxioytw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <ul>
            <li>How do you usually approach or avoid this issue?</li>
            <li>Do you think we should look at improving and
              standardizing the comprehension syntax?</li>
          </ul>
        </div>
      </div>
    </blockquote>
    Some might argue it is yet another instance of "superficial sugar
    obsession" [1] :-p I don't know where I stand personally.<br>
    <br>
    In any case, if you want to start, write down a proposal (can be 20
    lines in a gist [2]) including programs that are hard to express in
    JavaScript and which readability would significantly be improved
    with the new syntax.<br>
    Perhaps submit it to the mailing-list and try to find a "TC39
    champion" (criterion to enter stage 1).<br>
    At the very least, the proposal will be listed in the stage 0
    proposals list [3].<br>
    <br>
    David<br>
    <br>
    [1] <a class="moz-txt-link-freetext" href="https://twitter.com/mikeal/status/828674319651786754">https://twitter.com/mikeal/status/828674319651786754</a><br>
    [2] <a class="moz-txt-link-freetext" href="http://gist.github.com/">http://gist.github.com/</a><br>
    [3]
    <a class="moz-txt-link-freetext" href="https://github.com/tc39/proposals/blob/master/stage-0-proposals.md">https://github.com/tc39/proposals/blob/master/stage-0-proposals.md</a><br>
  </body>
</html>