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

Support let syntax for better reuse and readability #31

Open
beikov opened this issue Apr 7, 2021 · 0 comments
Open

Support let syntax for better reuse and readability #31

beikov opened this issue Apr 7, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@beikov
Copy link
Member

beikov commented Apr 7, 2021

Not sure how important this is, but for bigger expressions it might make sense to use some kind of let expression syntax to avoid duplication/improve readability. I propose a syntax like the following:

let a = 1 + 1,
    b = a / 10,
    c = 20
in
    a * c

Implementation-wise, the use of let expressions will make no difference. I even propose that we implement this as parse time expansion.

@beikov beikov added the enhancement New feature or request label Apr 7, 2021
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