From 7bf0481345cfecf10ed0f2546b09855892ae9276 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Sat, 3 Jan 2009 14:49:16 +0100 Subject: [PATCH] added 2 more things to the style guide --- HACKING | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/HACKING b/HACKING index a1997275..3710550f 100644 --- a/HACKING +++ b/HACKING @@ -24,3 +24,9 @@ We try to be quite consistent, but of course, that's not always possible. setTimeout(function () { ... }); + +* Prefer // over /* */ comments (exceptions for big comments are usually ok) + Right: if (HACK) // TODO: remove hack + Wrong: if (HACK) /* TODO: remove hack */ + +* Use UNIX new lines (\n), not windows (\r\n) or old Mac ones (\r)