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

Hexes cannot detect whether something on the stack is a pattern or not #168

Open
gchpaco opened this issue Jul 12, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@gchpaco
Copy link

gchpaco commented Jul 12, 2022

The context here is an akashic macro compiler, that looks each pattern up in the akashic library and substitutes the contents of the library at that position if a match occurs. Akasha's Distillation will mishap if the second argument is not a pattern, which means if you have reified data in your hex the compiler will inescapably break.

I see two ways out of this:

  • provide some way to distinguish patterns from non-patterns so the compiler can skip over them;
  • cause Akasha's Distillation to return NULL without mishaping in the case that the pattern argument is not a pattern (which would make the compiler work fine).
@yrsegal yrsegal added the enhancement New feature or request label Oct 1, 2022
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Hex Casting Jan 11, 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
Status: 📋 Backlog
Development

No branches or pull requests

2 participants