Thread Wann sind Prototypen sinnvoll (26 answers)
Opened by bloonix at 2006-05-23 14:33

ptk
 2006-05-24 10:48
#66502 #66502
User since
2003-11-28
3645 Artikel
ModeratorIn
[default_avatar]
[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.

View full thread Wann sind Prototypen sinnvoll