scymtym / architecture.builder-protocol

Protocol for flexible construction and traversal of results (e.g. ASTs in case of parsers)
GNU Lesser General Public License v3.0
8 stars 1 forks source link

Improve comment for make-keyword-arguments #7

Closed robert-strandh closed 1 year ago

robert-strandh commented 1 year ago

I would add two things to the comment associated with make-keyword-arguments.

The first thing is that the list returned is initially (:key1 nil :key2 nil ...) so that the first value of each list appears only after the first call to the destructive function.

The second thing is that, when a list of values is exhausted, then subsequent calls to the destructive function will insert NIL, as opposed to (say) signaling some error.