Why is Bool an Integer?


#1

I just realized that Bool is a subtype of Integer… why? When I have a function that takes an Integer value I don’t expect to get dispatched with true or false value…

That’s very C-like but makes no logical sense to me otherwise…


#2

See the discussion in https://github.com/JuliaLang/julia/issues/19168