From 3c3c96b2c3d8849cd4bb3ee2bf5e33e9a7ebedd1 Mon Sep 17 00:00:00 2001
From: Michael Zhou
-
+
Revision 2.93
JavaScript is the main client-side scripting language used
-
+
by many of Google's open-source
projects.
This style guide is a list of dos and don'ts for
JavaScript programs.
Bob Jervis
@@ -35,23 +35,23 @@
Optional and variable arguments can also be specified in
@param
annotations. Although either convention is
acceptable to the compiler, using both together is preferred.
Many JavaScript libraries, including
the Closure Library
@@ -826,7 +826,7 @@
parent namespace know what you are doing. If you start a project
that creates hats for sloths, make sure that the Sloth team knows
that you're using sloth.hats
.
"External code" is code that comes from outside your codebase, @@ -867,8 +867,8 @@ goog.exportSymbol('foo.hats.BowlerHat', googleyhats.BowlerHat); - - + +
Use local aliases for fully-qualified types if doing so improves
@@ -937,7 +937,7 @@
and should contain no punctuation except for -
or
_
(prefer -
to _
).