- From: Alex Komoroske <komoroske@google.com>
- Date: Wed, 17 Oct 2012 09:16:07 -0700
- To: Tobie Langel <tobie@fb.com>
- Cc: "Pete L." <plamoni@gmail.com>, "WebPlatform.org" <public-webplatform@w3.org>
Received on Wednesday, 17 October 2012 16:16:58 UTC
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