ES Style Question

Mark S. Miller erights at google.com
Fri Sep 9 11:10:31 PDT 2011


I like http://javascript.crockford.com/code.html , though I disagree with
leaving a space between "function" and "(" for anonymous functions.

http://www.jslint.com/

On Fri, Sep 9, 2011 at 10:45 AM, Rick Waldron <waldron.rick at gmail.com>wrote:

> I was wondering if a canonical guide for ECMAScript style and conventions
> exists - specifically I'm curious to find out what the historic precedence,
> rules and reasoning behind the capitalization of constructors and built-in
> objects, ie. Array or Math. Even _more_ specifically, there exists a fairly
> common convention that first letter capitalization is generally reserved for
> constructors that expect to be paired with "new"... obviously this is not a
> hard rule, but I'm curious if any documentation or articles exist regarding
> the subject.
>
> Thanks!
>
> Rick
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>


-- 
    Cheers,
    --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110909/52c2bfdb/attachment.html>


More information about the es-discuss mailing list