Only you don't cache the result of a function based on passed values.
You cache the optimized code based on passed types *
see https://en.m.wikipedia.org/wiki/Just-in-time_compilation
Hence the "slow" checking only happens at call time.
(of course you'll need kind of type of inference deduce implied types inside a sub)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
*) and global states like bigint
In reply to Re^10: Run Perl 5 in the Browser!
by LanX
in thread Run Perl 5 in the Browser!
by haukex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |