[Prev][Next][Index][Thread]
Re: Q: spec on #rest and #key
On Thursday, May 17, 2001, at 09:30 am, Roland Paterson-Jones wrote:
> Forgive my ignorance, but can't you detect the difference between
> key/value
> pairs and other arguments, simply because a key/value is a pair of
> arguments
> between ','s and the other arguments are a single syntactic element
> between
> ','s. Can you illustrate an ambiguous case for me with an example?
I think #keys get flattened into two parameters, the symbol and the
value.
> Would it be possible to introduce an explicit syntactic element to
> partition
> the arguments into mandatory+rest and key arguments (where necessary)?
> It
> just seems to me that functions using #rest would benefit from #key
> facility
> just as much as functions without #rest.
There's #all-keys. I forget how this interacts with #rest.
- Rob.
References: