[Haskell-cafe] pi

Jonathan Cast jonathanccast at fastmail.fm
Wed Oct 10 19:53:02 EDT 2007


On Wed, 2007-10-10 at 10:40 +0200, jerzy.karczmarczuk at info.unicaen.fr
wrote:
> Yitzchak Gale writes: 
> 
> > Dan Piponi wrote:
> >> The reusability of Num varies inversely with how many
> >> assumptions you make about it.
> > 
> > A default implementation of pi would only increase usability,
> > not decrease it.
> 
> Suppose I believe you. (Actually, I am afraid, I have doubts.)
> Can you provide some examples of this "increased usability"? 
> 
> If possible, with a *relevant* context, which shows that PI should belong
> by default to the class Floating (whatever we mean by that...) 

pi /is/ a method of class Floating.  It just doesn't have a default
implementation.

jcc




More information about the Haskell-Cafe mailing list