David Whipp wrote:
I was reading the "Partially Memorized Functions" thread, and the thought came to mind that what we really need, is to define a different implementation of the method for a specific value of the arg. Something like:sub days_in_month( Str $month is value{ rx:i/feb[ruary]?/ }, Int $year ) is cached { ... }
Yes. I have raised this prospect with Larry. It's certainly a very powerful capacity, and there are precedents in other languages. But, last I recall, we were not certain that the advantages it would provide would outweigh the complexities of implementation and usage that it would introduce. Let's just say, we're still weighing our courage against our sanity on that idea. ;-) Damian
