Why Nostr? What is Njump?
2024-04-10 15:04:57
in reply to

scy on Nostr: Also, both my list and your dict don't lazy-evaluate the results. With X if C else Y, ...

Also, both my list and your dict don't lazy-evaluate the results.

With X if C else Y, only X or Y is ever evaluated.

With out hacks, both are evaluated and then one of the results is selected. This can become a problem if the evaluation is expensive or has side effects.
Author Public Key
npub15pc5vt5kqgr60g389gl4n5zzuktz8wezz76klym9ew3puy3p8clqckhvce