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

unicode names in language objects #348

Open
moodymudskipper opened this issue Mar 18, 2024 · 0 comments
Open

unicode names in language objects #348

moodymudskipper opened this issue Mar 18, 2024 · 0 comments
Milestone

Comments

@moodymudskipper
Copy link
Collaborator

The quote(`\U{123}`) syntax is illegal. This means quote() cannot be used as a constructor when a language object contains some characters, depending on unicode_representation.

We could use substitute() or quote(), but only once, if we nest those it gets messy, and with NSE we'll have more issues.

I think we need a "as.call" constructor for language, and we fall back to it when we can't use quote.
as.call() cannot create symbols though, so we need to have a proper constructor for symbols, that would default on quote as well, but we'd have also "as.symbol" and "as.name", maybe "sym" (and then add "expr" to the language constructors, falling back to quote if contains !!, !!, {{).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant