-
-
Notifications
You must be signed in to change notification settings - Fork 32
Mitigate runtime errors for inf values #86
Copy link
Copy link
Open
Labels
c++involves C++ codeinvolves C++ codeimprovementimproves existing functionalityimproves existing functionalityspecificationinvolves the nyan language specificationinvolves the nyan language specification
Metadata
Metadata
Assignees
Labels
c++involves C++ codeinvolves C++ codeimprovementimproves existing functionalityimproves existing functionalityspecificationinvolves the nyan language specificationinvolves the nyan language specification
Type
Fields
Give feedbackNo fields configured for issues without a type.
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