You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: