ES Style Question

Brendan Eich brendan at
Sat Sep 10 12:09:36 PDT 2011

On Sep 9, 2011, at 1:48 PM, Wes Garland wrote:

> On 9 September 2011 16:06, Rick Waldron <waldron.rick at> wrote:
> I was actually very specifically looking for an answer regarding First letter casing for non-constructor built-in objects, ie. Math and Proxy. I think the legacy Java style guide influence addresses the question as best as I can hope for.
> These  *did* come to us via Java (well, not Proxy), but they are hardly a matter of style; they are a matter of specification.

They're a matter of style, ultimately (in Java).

> Generally we name constructor functions with CapitalLeadingCamelCase and everything else with smallLeadingCamelCase.

Math and other "leaf package names" in Netscape's implementation are StudlyCaps, same as in Java. We'll see how people name modules (the importer binds the name, so this is all up to users' style preferences in ES6).


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list