We have thought about amending the nyan language spec to mitigate runtime errors: * [X] If an `optional(..)` type member has the None value assigned, all relative operations (`+=`, `*=`, etc.) on the value will have the result `None`. * [ ] The `inf` value for the `int`/`float` types can only be assigned -> Relative operation using `inf` as the operand will be disallowed. * [X] The special case `inf *= 0` will cause a `RuntimeError` From: https://matrix.to/#/!iPmyRMGnDgSMPGqgaX:matrix.org/$w2yaN1vNl21LMYIU-CMcu2nNJDGHoLr1l1OhJP-BtwI?via=matrix.org&via=sft.lol&via=stusta.de
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.infvalue for theint/floattypes can only be assigned -> Relative operation usinginfas the operand will be disallowed.inf *= 0will cause aRuntimeErrorFrom: https://matrix.to/#/!iPmyRMGnDgSMPGqgaX:matrix.org/$w2yaN1vNl21LMYIU-CMcu2nNJDGHoLr1l1OhJP-BtwI?via=matrix.org&via=sft.lol&via=stusta.de