You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from syntax-objects/Summer2021#19
cc @dstorrs
I included a pointer to struct-plus-plus. I'm not planning to include
it as another entry because it does a lot at once ... but maybe
it'd go nicely as a big "capstone" kind of example?
from syntax-objects/Summer2021#19
cc @dstorrs
I included a pointer to struct-plus-plus. I'm not planning to include
it as another entry because it does a lot at once ... but maybe
it'd go nicely as a big "capstone" kind of example?
bennn
added a commit
to syntax-objects/syntax-parse-example
that referenced
this issue
Oct 27, 2021
from syntax-objects/Summer2021#19
cc @dstorrs
I included a pointer to struct-plus-plus. I'm not planning to include
it as another entry because it does a lot at once ... but maybe
it'd go nicely as a big "capstone" kind of example?
The following is a snippet from the struct-plus-plus module, available here: https://docs.racket-lang.org/struct-plus-plus/index.html
It is a template metafunction, meaning a function that can be used inside a macro.
Example
When run, the above code produces:
> (person "alice" 18 #f)
The contract on the
person++
function is:(->* (#:name any/c #:age number?) (#:vegan? boolean?) person?)
Code
The text was updated successfully, but these errors were encountered: