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

pq
 2006-05-24 13:34
#66507 #66507
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
ich benutze in HTC schon eine mene konstanten, als array-indizes zumeist.
es gibt zwar anhänger, die Readonly propagieren (Conway), aber ich zumindest
habe die nachteile von konstanten noch nicht verstanden. das mit den
hash-keys ist klar, aber wenn man's weiß...

wenn ich all die konstanten, die ich benutze, in Readonly verwandeln
würde, dann könnte ich das modul wohl in die tonne werfen. es
ist einfach langsamer, da konstanten im gegensatz zu Readonly variablen
einwach wegoptimiert werden.\n\n

<!--EDIT|pq|1148463354-->
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Wann sind Prototypen sinnvoll