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
We have thought about amending the nyan language spec to mitigate runtime errors:
optional(..)
+=
*=
None
inf
int
float
inf *= 0
RuntimeError
From: https://matrix.to/#/!iPmyRMGnDgSMPGqgaX:matrix.org/$w2yaN1vNl21LMYIU-CMcu2nNJDGHoLr1l1OhJP-BtwI?via=matrix.org&via=sft.lol&via=stusta.de
The text was updated successfully, but these errors were encountered:
Implemented in #87: When operating on an optional that currently is None, the member remains None. Infinity exceptions remain.
optional
Sorry, something went wrong.
No branches or pull requests
We have thought about amending the nyan language spec to mitigate runtime errors:
optional(..)
type member has the None value assigned, all relative operations (+=
,*=
, etc.) on the value will have the resultNone
.inf
value for theint
/float
types can only be assigned -> Relative operation usinginf
as the operand will be disallowed.inf *= 0
will cause aRuntimeError
From: https://matrix.to/#/!iPmyRMGnDgSMPGqgaX:matrix.org/$w2yaN1vNl21LMYIU-CMcu2nNJDGHoLr1l1OhJP-BtwI?via=matrix.org&via=sft.lol&via=stusta.de
The text was updated successfully, but these errors were encountered: