In mathn.rb, please remove the method Prime.cache and its aliases,
since it is an exposed implementation detail. If we later switch to a
faster algorithm that doesn't use a cache, backward compatibility
issues will be avoided.
Those who want to see the cache would still be able to use hackish
methods to acheive it.
ruby-core is the best place for this kind of discussion.
ยทยทยท
On Oct 19, 2007, at 18:39 , C Erler wrote:
In mathn.rb, please remove the method Prime.cache and its aliases,
since it is an exposed implementation detail. If we later switch to a
faster algorithm that doesn't use a cache, backward compatibility
issues will be avoided.
Those who want to see the cache would still be able to use hackish
methods to acheive it.
--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars