|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re^5: "Rites of Passage" wheel reinventingby hardburn (Abbot) |
| on Feb 27, 2004 at 19:17 UTC ( #332342=note: print w/ replies, xml ) | Need Help?? |
|
That's an advantage in Perl5, yes, but good class design is language-agnostic. There might be a language which provides locked keys for hashes by default, or perhaps you use one of the locked keys implementations in Perl (using a tied interface). Or maybe your language doesn't have hashes, but it has structs which are statically typed and serve the same purpose, and thus a compile-time error is generated anyway. ---- Note: All code is untested, unless otherwise stated
In Section
Meditations
|
|
||||||||||||||||||||||||||