A modest proposal

Cale Gibbard cgibbard at gmail.com
Sun Apr 16 11:53:21 EDT 2006


On 16/04/06, Taral <taralx at gmail.com> wrote:
> On 4/15/06, John Goerzen <jgoerzen at complete.org> wrote:
> > On the downside, this means that I couldn't just say:
> >
> > take 5 mylist
> >
> > I'd instead have to write:
> >
> > take (5::Int) mylist
>
> Wouldn't defaulting do this?
>
Yeah, defaulting should make that 5 an Integer by default. (unless the
defaults have been changed by use of the default keyword of course)


More information about the Haskell-prime mailing list