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
If we are considering guppy as a strongly typed language, I think bool should not be implicitly treated as a numeric type. We could certainly provide casting/conversion functions for explicit coercion, if they don't exist already.
Should we turn bool into a numeric type to match Python's behaviour? This means all of the following equalities would hold:
See #263 for a PR that implements this.
Personally, I'd be in favour to increase consistency with Python. It also allows some nice patterns like
What do you think? @croyzor @qartik @ss2165
The text was updated successfully, but these errors were encountered: