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

Add support for Rust lists and Python dicts as literals in initializers #507

Open
Tracked by #1492
lhstrh opened this issue Sep 15, 2021 Discussed in #492 · 0 comments
Open
Tracked by #1492

Add support for Rust lists and Python dicts as literals in initializers #507

lhstrh opened this issue Sep 15, 2021 Discussed in #492 · 0 comments
Labels
enhancement Enhancement of existing feature language Related to the syntax and semantics of LF

Comments

@lhstrh
Copy link
Member

lhstrh commented Sep 15, 2021

It that seems having list expressions as first order citizens in LF as proposed by @oowekyala in #492 is likely to cause more issues than they would solve. For the time being, we can just escape lists in Rust initializers with {==}. In the long run, however, we should support lists (and also Python's dicts) directly in our syntax and treat them as lliterals. It is likely that all we'd need to do (in the grammar) is change the definition of Value

Originally posted by @lhstrh in #492 (comment)

@lhstrh lhstrh added the enhancement Enhancement of existing feature label Sep 15, 2021
@cmnrd cmnrd added the language Related to the syntax and semantics of LF label Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing feature language Related to the syntax and semantics of LF
Projects
None yet
Development

No branches or pull requests

2 participants