-
Notifications
You must be signed in to change notification settings - Fork 122
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 for trailing comma #179
Conversation
Hi @vitorpy, thanks for reviving that PR! You made the PR to be a draft, any additional things need to be done here? |
btw, you probably want to remove src/test/features/serialization-2.tact from your PR -- it's just some unrelated whitespace changes |
Hey, I'm going to add support for trailing commas on function arguments lists as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few suggestions that should be pretty easy to fix. Looking forward to having the trailing comma feature in the language!
Please add also the corresponding entry in CHANGELOG.md (the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome stuff! Thanks for all the quick fixes. Just one tiny change and we are good to go
I just added this PR to the v1.3.0 milestone so we will make it available in the very next Tact release |
Co-authored-by: Anton Trunov <[email protected]>
Thanks! That was fun! I'll see if I grab another issue 😃 |
@vitorpy By all means! If you decide to do it, it would be nice if you outlined your solution before going for it, just to make sure we are on the same page and to make the code review process a faster and smoother experience. |
Will do. This one I went directly as I saw the old PR and it seemed like a good way to get to know the code base a little without too much trouble. Fixed the test case - thanks for the review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI shows that some tests are failing
You can see here how to run it locally:
https://github.com/tact-lang/tact/blob/main/.github/workflows/tact.yml#L35-L38
Hey @vitorpy, no worries at all! Thank you for bringing this feature to Tact and helping to make the implementation more robust |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is red unfortunately
@anton-trunov I'm kinda stuck on why case-0 is not throwing. Could you give me some pointers on how to progress? |
@vitorpy Thank you for your contribution! This qualifies for the Tact contributor SBT: https://society.ton.org/contribute-to-tact-compiler. I'll just need your TON wallet address to issue the token |
Awesome! I'll try to keep the contributions going. UQAz6vmh0aKPSH5dJHsfHI8YQH55oLeuWMz4eQkr4ZjS-aG6 |
SBT issued! Hope to see more things from you 👍 |
Closes #28.
Based on abandoned PR #49.