Skip to content

Declare variables on the same line #965

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

Merged
merged 1 commit into from
Aug 14, 2022
Merged

Conversation

certik
Copy link
Contributor

@certik certik commented Aug 13, 2022

This is the most natural Python syntax to declare variables on the same
line.

This is the most natural Python syntax to declare variables on the same
line.
Copy link
Collaborator

@czgdp1807 czgdp1807 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is cool.

@czgdp1807
Copy link
Collaborator

I think we can merge this?

@certik certik merged commit 8499cee into lcompilers:main Aug 14, 2022
@certik certik deleted the declare_same_line branch August 14, 2022 11:30
@certik
Copy link
Contributor Author

certik commented Aug 14, 2022

Sure. I think this is good enough. It's slightly annoying to do x: i32; y: i32; z: i32 instead of x, y, z: i32, but the Python syntax does not allow it. And doing something like i32("x y z") seems not worth it. I think the above is good enough for now.

@czgdp1807
Copy link
Collaborator

Yeah at least every declaration stays in the same line.

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

Successfully merging this pull request may close these issues.

2 participants