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

Re: JavaScript/ECMAScript Styling and Citation

From: Pete L. <plamoni@gmail.com>
Date: Wed, 17 Oct 2012 10:14:37 -0500
Message-ID: <CADRHs0i3R5Ti5yGmR__fME=NWHY9HBYYJr8=kvMfw2zzcMRy_g@mail.gmail.com>
To: "WebPlatform.org" <public-webplatform@w3.org>
> 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:

If no one minds, I might get started on a JS style guide. It will be the
first time I've tried to write such a thing, but I'll do some research on
some existing style guides (like those from jQuery, DOJO, and Google) to
see what they have to say. If anyone else has suggestions on other good
style guides to research, please let me know.

Received on Wednesday, 17 October 2012 15:15:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:13:32 UTC