Thread Wann sind Prototypen sinnvoll
(26 answers)
Opened by bloonix at 2006-05-23 14:33
[quote=betterworld,24.05.2006, 01:44]Leere Prototypen benutze ich auch manchmal, um Konstanten zu erzeugen (so wie mit use constant). ("Constant Functions" in perlsub)[/quote]
Konstanten vermeide ich mittlerweile: wenn Konstanten nicht ganz so konstant sind und von Zeit zu Zeit geƤndert werden, dann funktioniert ein Neuladen mit Apache::Reload nicht mehr. Und ich bin zu oft auf das Problem mit Konstanten als Hashkeys hereingefallen. Aber wenn man wirklich Performance braucht, dann sind Konstanten ganz nett. |