1.9 Prime class change request

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.

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.

ruby-core is the best place for this kind of discussion.