> On Wed, 25 Apr 2001, Robert Ennals wrote: > > > Thus if we want to "inherit" our implicit paramater, we would have: > > > > f ?y x = (x :: Int) + ?y > > I like the current solution better. They are called "implicit parameters" > because they are, well, implicit :-) The semantics is still implicit. When one calls the function f, one would only explicitly pass x, not y. Eg one can do g :: (y :: Int) => Int g ?y = f 1 And for top level functions, one could make it optional anyway, as there is nowhere else for the variable to have come from. -Rob _______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell
- Implict parameters and monomorphism Simon Peyton-Jones
- Re: Implict parameters and monomorphism kahl
- Re: Implict parameters and monomorphism Dylan Thurston
- Re: Implict parameters and monomorphism Marcin 'Qrczak' Kowalczyk
- Re: Implict parameters and monomorphism Marcin 'Qrczak' Kowalczyk
- Re: Implict parameters and monomorphism Marcin 'Qrczak' Kowalczyk
- Re: Implict parameters and monomorphism Robert Ennals
- Re: Implict parameters and monomorphism Marcin 'Qrczak' Kowalczyk
- Re: Implict parameters and monomorphism Robert Ennals
- Re: Implict parameters and monomorphism Jeffrey R. Lewis
- RE: Implict parameters and monomorphism Simon Peyton-Jones
- Re: Implict parameters and monomorphism John Hughes
- Re: Implict parameters and monomorphism Erik Meijer
- Re: Implict parameters and monomorphism Rishiyur S. Nikhil
- Re: Implict parameters and monomorphism Andreas Rossberg
- RE: Implict parameters and monomorphism Simon Peyton-Jones
- Re: Implict parameters and monomorphism Jeffrey R. Lewis
- Re: Implict parameters and monomorphism Lennart Augustsson