- WHY? When using my own home grown object system, I found out that it could not handle keyword parameters.
- Problem. Take a parameter list and remove keyword parameters.
- Solution. Parse the argument list to the functions, remove and if needed replace keyword.
- Example. Need to remove &key and replace with keyword and variable.
- (a b) => (a b)
- (a (b)) => (a (b))
- (&key a) => (:a a)
- (&key a b) => (:a a :b b)
- (a &key b) => (a :b b)
- (a (&key b)) => (a (:b b))
Posted by gutzofter