fonol / cl-community-spec

A Common Lisp specification, made from the original ANSI specification drafts
https://cl-community-spec.github.io
MIT License
79 stars 6 forks source link

Lambda List Tweaks #33

Open githubforced2fabad opened 3 months ago

githubforced2fabad commented 3 months ago

On the page for destructuring lambda lists (https://cl-community-spec.github.io/pages/Destructuring-Lambda-Lists.html), it explicitly says "except for &environment", but then lists "envvar ::= [&environment var]", the envvar is not reference anywhere on the page including by lambda-list. It should be removed. It is covered on the macro lambda list page (https://cl-community-spec.github.io/pages/Macro-Lambda-Lists.html).

The specialized lambda list page (https://cl-community-spec.github.io/pages/Specialized-Lambda-Lists.html) has the opposite issue. There is a specializer mentioned, but it does not appear in the grammar. There is also an extra set of parenthesis around specializer. The grammar is properly defined on the defmethod page (https://cl-community-spec.github.io/pages/defmethod.html) and should appear the same here. &allow-other-keys is strangely in bold on that page though. There is also something a little funny going on with the &key, but I'm not sure how to describe it.

githubforced2fabad commented 3 months ago

I have trouble with github merge requests. Here is a patch with my proposed changes. 0001-Lambda-lists-tweaks.txt