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
Original bug ID: 6644 Reporter: bouaziz Status: resolved (set by @damiendoligez on 2017-03-01T14:09:18Z) Resolution: won't fix Priority: normal Severity: feature Category: language features
Bug description
Since nan, infinity and neg_infinity are values of Pervasives, there is no way to use them in the lhs of a pattern matching.
One has to use _ = infinity or compare nan _ = 0 or classify_float instead.
The text was updated successfully, but these errors were encountered:
Original bug ID: 6644
Reporter: bouaziz
Status: resolved (set by @damiendoligez on 2017-03-01T14:09:18Z)
Resolution: won't fix
Priority: normal
Severity: feature
Category: language features
Bug description
Since nan, infinity and neg_infinity are values of Pervasives, there is no way to use them in the lhs of a pattern matching.
One has to use _ = infinity or compare nan _ = 0 or classify_float instead.
The text was updated successfully, but these errors were encountered: