Author rhettinger
Recipients ajaksu2, alanmcintyre, avalind, dtorp, ilan, jafo, mark.dickinson, phr, rhettinger
Date 2008-03-18.19:18:36
SpamBayes Score 0.170673
Marked as misclassified No
Message-id <1205867917.79.0.0651427773833.issue2138@psf.upfronthosting.co.za>
In-reply-to
Content
I prefer factorial as a method (like Ruby and Smalltalk).  Given the
usual notation (n!) or pronounciation (n factorial), it is natural to
write this as:  n.factorial().

Compared to  numbits() and isqrt(), a factorial() method is more basic
in that it is self explanatory and everyone knows what it means by the
time they are in middle school.

FWIW, if separate RFEs were opened for numbits() and isqrt(), I would
support their being int methods too.  Their implementations are helped
by access to the underlying representation, and a case could be made
that these no argument calls are just properties of the number (just
like the sign bit).
History
Date User Action Args
2008-03-18 19:18:38rhettingersetspambayes_score: 0.170673 -> 0.170673
recipients: + rhettinger, jafo, phr, mark.dickinson, dtorp, alanmcintyre, ajaksu2, avalind, ilan
2008-03-18 19:18:37rhettingersetspambayes_score: 0.170673 -> 0.170673
messageid: <1205867917.79.0.0651427773833.issue2138@psf.upfronthosting.co.za>
2008-03-18 19:18:37rhettingerlinkissue2138 messages
2008-03-18 19:18:36rhettingercreate