W3C home > Mailing lists > Public > public-webplatform@w3.org > October 2012

Re: JavaScript/ECMAScript Styling and Citation

From: Alex Komoroske <komoroske@google.com>
Date: Wed, 17 Oct 2012 09:16:07 -0700
Message-ID: <CAPwaZpVfYpHwKPSVS_VFaQfrF9_k9w_nW3mLWGuOzgJKFzNAOg@mail.gmail.com>
To: Tobie Langel <tobie@fb.com>
Cc: "Pete L." <plamoni@gmail.com>, "WebPlatform.org" <public-webplatform@w3.org>
On Wed, Oct 17, 2012 at 9:11 AM, Tobie Langel <tobie@fb.com> wrote:

> On 10/17/12 5:14 PM, "Pete L." <plamoni@gmail.com> wrote:
> >> i) a + 1; //returns 5
> >> This is simply wrong; "return" has a specific meaning in JS (returning
> >>a value from a function).  Better not to confuse that with anything else.
> >
> >Someone should tell that to Mozilla:
> >
> https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Values,_variable
> >s,_and_literals
>
> Sounds like this was fixed in the meantime.
>
> >If no one minds, I might get started on a JS style guide.
>
> TBH, I see little value in creating YASG (Yet Another Style Guide).
>
> The community should vote for an existing one or go styleguide-less.
>

I'd strongly prefer that we have *a* style guide so we can at least
*aim *for consistency.
I think I prefer using an existing one over creating a new one, just
because I know how much work/debate/pain would be involved in creating a
new one.

>
> --tobie
>
>
>
Received on Wednesday, 17 October 2012 16:16:58 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:57:34 UTC