Jan Vroonhof <vroonhof(a)math.ethz.ch> writes:
Hrvoje Niksic <hniksic(a)srce.hr> writes:
[This Lisp FAQ talking about Common Lisp is it.)
> When a function takes both types of arguments, all the optional
> arguments must be specified explicitly before any of the keyword
> arguments may be specified.
Can be not just ditch this requirement (which I consider extremely
silly).
> So, adding keyword arguments to a function that already accepts a
> bunch of optional arguments (for historical reasons) would only
> introduce *more* problems and confusion.
What if you can also specify the "optional" arguments through keywords
then you can just use all keywords or just positional arguments.
How do you propose to know the difference between:
(read-passwd "Password: " :default "Foo" :confirm t )
and
(read-passwd "Password: " :default "Foo")
Where the user was just passing in any old thing for the 'confirm' optional
parameter? It just has to be non-nil.
-Bill P.