1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 22:04:12 +01:00

added comment to HACKING about new

This commit is contained in:
Martin Stubenschrott
2009-01-07 21:06:31 +01:00
parent 16ea6a79d9
commit d2a96e4475

View File

@@ -129,6 +129,15 @@ We try to be quite consistent, but of course, that's not always possible.
most of JS is a hack... most of JS is a hack...
--Kris --Kris
There is semantic value: With new you know for SURE it's calling the
constructor of a class, with CamelCase only you just ASSUME you do.
I am all about making code clearer also to new developers. And this
includes getting rid of as many assumptions as possible, by making
things explicit, when they don't hurt readability (and new doesn't
for me). It's not so important, that i'll change all instances to
new immediately, but will probably do so over time, when I see it.
--mst
== Testing/Optimization == == Testing/Optimization ==
TODO: Add some information here about testing/validation/etc. TODO: Add some information here about testing/validation/etc.