[OpenLayers-Dev] Semicolons

Erik Uzureau erik.uzureau at metacarta.com
Fri Aug 31 10:25:56 EDT 2007


In a bout of friday afternoon lunacy, I began adding semicolons to the
end of the function declarations in the tests files.

The original impetus for this was that I noticed that doing so reduced
the number of errors reported by the JSEclipse plugin that I use for
my JS development work. Certainly neither an urgent nor universal
change, but I need to spin some brain cycles.

Someone else has brought it to my attention that s/he is *not* in
favor of that style....

I prefer:

function foo() {};
and
var foo = function() {};

whereas s/he prefers:

function foo() {}
and
var foo = function() {}



do others have an opinion on this? the OC in me wants everything to be
the same in our code, and I'm more than willing to rollback the
changes I've just done if people are in favour of the other way of
doing it.

Please cast a vote if you have some thoughts.

Erik



More information about the Dev mailing list