Mitigate runtime errors for inf values #86
Labels
c++
involves C++ code
improvement
improves existing functionality
specification
involves the nyan language specification
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: