Tacitus 🇮🇪 :godot: :linux: on Nostr: nprofile1q…dj2mx Yes, exactly. It is wrong to add bools but if you're treating them ...
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpq4yqjkzqkgv4a27egvq5xmh2ravemytg9g5kldqeqfts92uvh90sqkdj2mx (nprofile…j2mx)
Yes, exactly. It is wrong to add bools but if you're treating them as ints then they can be added, this sort of weirdness is what you get when implicitly casting.
Long story short: the reduced clarity of treating a bool as something it isn't is never worth the nanoseconds you'd save by avoiding a ternary (which should be optimised away by the compiler anyway).
Yes, exactly. It is wrong to add bools but if you're treating them as ints then they can be added, this sort of weirdness is what you get when implicitly casting.
Long story short: the reduced clarity of treating a bool as something it isn't is never worth the nanoseconds you'd save by avoiding a ternary (which should be optimised away by the compiler anyway).