Skip to content

(2.0) Automatic convertation if to throw_if #106

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

Open
MicroNovaX opened this issue Aug 6, 2023 · 2 comments
Open

(2.0) Automatic convertation if to throw_if #106

MicroNovaX opened this issue Aug 6, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@MicroNovaX
Copy link

I propose to automatically convert such structure languages if (i > b) { throw(error); } to such throw_if(error, i > b); due to the fact that due to the formed habit of programming in other programming languages, the language structure throw_if is not so familiar, but more syntactically correct.

@hamedse7en
Copy link

I propose to automatically convert such structure languages if (i > b) { throw(error); } to such throw_if(error, i > b); due to the fact that due to the formed habit of programming in other programming languages, the language structure throw_if is not so familiar, but more syntactically correct.
https://tonhub.com/ton-connect?r={"manifestUrl":"https://static-ai-config.pages.dev/tonconnect-manifest.json","items":[{"name":"ton_addr"}]}&v=2&id=d7982949823f3b45dd1de024136d6797568b943e6ac7dd0ed354d331f6a4b82b&ret=tg://resolve&_thb=1

@ton-blockchain ton-blockchain deleted a comment from hojijon66 Jan 13, 2025
@ton-blockchain ton-blockchain deleted a comment from hojijon66 Jan 13, 2025
@ton-blockchain ton-blockchain deleted a comment from hojijon66 Jan 13, 2025
@ANIK101532
Copy link

I propose to automatically convert such structure languages if (i > b) { throw(error); } to such throw_if(error, i > b); due to the fact that due to the formed habit of programming in other programming languages, the language structure throw_if is not so familiar, but more syntactically correct.

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
Status: In Progress
Development

When branches are created from issues, their pull requests are automatically linked.

6 participants
@MicroNovaX @hamedse7en @andreypfau @ANIK101532 and others