On Wed, Jul 26, 2017 at 9:01 AM, T.J. Crowder
<tj.crow...@farsightsoftware.com> wrote:
> On Wed, Jul 26, 2017 at 1:52 PM, Michael Dyck
> <jmd...@ibiblio.org> wrote:
>> On 17-07-26 07:32 AM, T.J. Crowder wrote:
>>>
>>> Second, the general: What's the significance of the indentation? Some
>>> productions are indented more than others, and I can't see meaning in it.
>>
>> No significance, just a styling thing.
>> See https://github.com/tc39/ecma262/issues/956
>
> Thanks!
>
> **Ouch**, that's time I'd really like back. The problem is in the ES2015 and
> ES2016 specs too, I assumed it had to mean something.

I find it confusing too.
Other specifications look similar but have significant indentation.
For example, JLS uses a similar metagrammar: colons separate left hand
sides from right, line breaks representing disjunction, and spaces
conjunction.
JLS Section 2.4 says
    "A very long right-hand side may be continued on a second line
     by clearly indenting the second line."
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to