The function ifNotFloat will error if the subjectis a float, whereas ifNotInt will error if the subject is not an int. I believe the behavior of ifNotInt is correct. In the definition of isNotFloat, ifTrue, should be ifFalse.
Note:
The definition of ifNotFloat and ifNotInt also differ in the second argument as well. ifNotInt takes a function with the invalid int, whereas ifNotFloat takes just the error. Any changes to ifNotFloat should probably also reconcile the definitions to be the same.
The function
ifNotFloat
will error if thesubject
is a float, whereasifNotInt
will error if the subject is not an int. I believe the behavior ofifNotInt
is correct. In the definition ofisNotFloat
,ifTrue
, should beifFalse
.The current definition:
The correct definition:
Note: The definition of
ifNotFloat
andifNotInt
also differ in the second argument as well.ifNotInt
takes a function with the invalid int, whereasifNotFloat
takes just the error. Any changes toifNotFloat
should probably also reconcile the definitions to be the same.