Re: Monolithic and Large prelude

1998-11-05 Thread Fergus Henderson
On 04-Nov-1998, Claus Reinke <[EMAIL PROTECTED]> wrote: > > >seems like another reason to advocate ad hoc polymorphism > >(allow a name to denote several things, as long as they have > >different types). > > How much ``ad hoc'' would you like? Hugs 1.3c [March 1998 p1] > accepts the following w

Re: Monolithic and Large prelude

1998-11-04 Thread Johannes Waldmann
> I am writing code that would like to use the word "product" as a field > selector for a Product (object representing something for sale). > Unfortunately, it can't easily use "product" because the prelude claims > the word for multiplication. seems like another reason to advocate ad hoc polym

RE: Monolithic and Large prelude

1998-11-04 Thread Simon Peyton-Jones
> I would like to lobby to move sum and product to the list library. > Or, to rename them listSum, listProduct. > (so that a user can use the names sum and product for > whatever is their > primary data structure e.g. tree) As someone said, I think 'hiding' is what you want. Your suggestion is q