What is Nostr?
Tacitus 🇮🇪 :godot: :linux: /
npub1rhe…x7q4
2025-01-06 12:21:43
in reply to nevent1q…33wu

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).
Author Public Key
npub1rhenkvunekea47drvgk0fte5gn6sq32kj7dk9g22x89hfzrtj8ksglx7q4