We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Toy/source/toy_vm.c
Lines 336 to 347 in 7398898
In most languages, the && and || operators have short-circuiting behavior. As it is, the current implementation doesn't do that.
&&
||
I may need the JUMP keyword to skip over the rhs if the top value is true.
The text was updated successfully, but these errors were encountered:
Formal definition for &&:
Return the first falsy value, or the last value, skipping the evaluation of other operands.
Formal definition for ||:
Return the first truthy value, or the last value, skipping the evaluation of other operands.
This definition matches JavaScript's implementation.
Sorry, something went wrong.
No branches or pull requests
Toy/source/toy_vm.c
Lines 336 to 347 in 7398898
In most languages, the
&&
and||
operators have short-circuiting behavior. As it is, the current implementation doesn't do that.I may need the JUMP keyword to skip over the rhs if the top value is true.
The text was updated successfully, but these errors were encountered: