What is Nostr?
Andreas Fink /
npub10de…kz0p
2024-12-31 16:04:19
in reply to nevent1q…xg57

Andreas Fink on Nostr: nprofile1q…lvwdu ? : has the property to return a value. if/else not. So theres use ...

nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqzga36zd4pekaaglk8suek6p0ru53xlv0e0e747x6tr46lnuuwmdq7lvwdu (nprofile…vwdu) ? : has the property to return a value. if/else not. So theres use case where writing if/else variants become ugly and ? : is short. As a long term (40 years) C programmer I rarely use ? : and try to never use if/else without {} . This is a deliberate coice so code is always clear to the reader, whoever it is. And this I have carried over to ObjC.
Author Public Key
npub10dezm9nh27vpn7cpek0wnfywa6yvp6c5n0tccmwxvcmk90d6hcsspfkz0p