What is Nostr?
Spencer /
npub1j6a…u8jq
2024-07-10 07:06:20
in reply to nevent1q…yt9c

Spencer on Nostr: ‘==‘ and ‘not’ are both operators. It’s like writing ‘5 + - 4’ instead ...

‘==‘ and ‘not’ are both operators. It’s like writing ‘5 + - 4’ instead of ‘5 + (-4)’.

Beware of ‘is’ in boolean expressions. It’s testing for object identity not equality and thus should not replace ‘==‘ in boolean operations.

True: ‘a is b => a == b’
False: ‘a == b => a is b’

#python
Mike Driscoll (npub1ht8…374v)
Author Public Key
npub1j6aqdj4rxwr2uzkce272mp7epldjz2ys6j3x96cy56nulan6szxqueu8jq