-
-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
c++involves C++ codeinvolves C++ codeimprovementimproves existing functionalityimproves existing functionalityspecificationinvolves the nyan language specificationinvolves the nyan language specification
Description
We have thought about amending the nyan language spec to mitigate runtime errors:
- If an
optional(..)
type member has the None value assigned, all relative operations (+=
,*=
, etc.) on the value will have the resultNone
. - The
inf
value for theint
/float
types can only be assigned -> Relative operation usinginf
as the operand will be disallowed. - The special case
inf *= 0
will cause aRuntimeError
Metadata
Metadata
Assignees
Labels
c++involves C++ codeinvolves C++ codeimprovementimproves existing functionalityimproves existing functionalityspecificationinvolves the nyan language specificationinvolves the nyan language specification