1.9 Prime class change request

C

C Erler

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.
 
E

Eric Hodel

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,269
Messages
2,571,338
Members
48,025
Latest member
Rigor4

Latest Threads

Top