Simon Lukas Schlee <schlee.simon@gmail.com>
This macro makes certain repetitive access patterns easier to write. Its implementation was improved by feedback from the racket community.
This animated gif shows the binding arrows in DrRacket for some example uses of the macro.
syntax
( define-attributes (id...)prefix(attribute...))
id = input-id| [input-id]| [input-idrenamed-id]attribute = attribute-id| [attribute-idrenamed-id]
Another way to describe this is:
The different combinations of the ids with the attributes creates a resulting matrix of new bindings.
Then the corresponding matrix looks like this:
(define-attributes (lr)vec3-(xyz))
;vec3-length accessed/computed as if it were an attribute