Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local-expand-type #246

Open
gelisam opened this issue Jun 25, 2024 · 0 comments
Open

local-expand-type #246

gelisam opened this issue Jun 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@gelisam
Copy link
Owner

gelisam commented Jun 25, 2024

We have decided that we prefer to implement the #244 approach first, but for future reference, at some point it would be nice for a macro to be able to grab some syntax from the code it is transforming, and to parse it into a Type value. This is similar to local-expand, which takes a Syntax object and interprets it into another Syntax object, except that local-expand-type would take a Syntax object and interpret it into a Type value.

(>>= (local-expand-type '(Maybe Integer))
  (lambda (type)
    (type-case type
      [(Maybe Integer) 'success])))
@gelisam gelisam added the enhancement New feature or request label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant