[Prev][Next][Index][Thread]
Re: Is Dylan a functional language?
In article <B7EBC337.17AB9%ptw@callitrope.com>, P T Withington
<ptw@callitrope.com> wrote:
> Neelakantan Krishnaswami neelk@alum.mit.edu on 2001-10-10 22:00 wrote:
>
> > It would be nice if a Dylan compiler could reject the method
> > quux(<float>) as having a different keyword argument list than the
> > generic function declaration. This would permit the overhead of
> > keyword arguments to get optimized away every time, since the compiler
> > would know that keywords always come in the same order.
>
> I don't follow that. The compiler could assign a fixed order to the
> keywords for argument passing, it's just that the methods need to assign
> defaults in the correct order.
Right.
And note that it's the method itself which evaluates the default, not
(unlike C++) the caller.
-- Bruce
References: