-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Metafunctions in O position of Judgment Not Working #13
Comments
The O positions are syntactically restricted to be patterns (inside
judgment forms anyway) and metafunctions can go in patterns. Are you
suggesting a different rule? (Can you say what the rule would be?)
|
I believe he's saying it is broken Jay On Friday, September 25, 2015, Robby Findler notifications@github.com
Jay McCarthy
And out of small things proceedeth that which is great." |
The metafunction |
On Fri, Sep 25, 2015 at 3:20 PM, Max S. New notifications@github.com
I don't see why you think that. Metafunctions aren't allowed to be used in Robby |
Oh above you said metafunctions "can" go into patterns but I see now you meant "can't". So I guess I'm proposing that in a pattern a metafunction is just evaluated and its output used as a pattern. |
That's a pretty radical change and it would prohibit things like compiling
patterns to racket/match, which seems bad. And what scoping rules would you
give for that?
|
Well, this seems to be a big semantics discussion we could have and so probably best not to do that in a github issue, so I'm closing this. If it seems wrong to you, please reopen. |
Small repro:
Everything works fine if there's no metafunction or if a metafunction is used in an I position:
But it fails if you use the metafunction in the O position:
Even though
The text was updated successfully, but these errors were encountered: