What is Nostr?
(λ. borkdude) /
npub1cnh…el5k
2024-02-05 11:50:57

(λ. borkdude) on Nostr: The reason I don't use keywords with questions marks for boolean becomes apparent in ...

The reason I don't use keywords with questions marks for boolean becomes apparent in this example:

(e/parse-string "..." {:regex true :location? (constantly false)})

:regex is a boolean (true or false), but :location? is a predicate that returns true or false.

#clojure
Author Public Key
npub1cnhcxst0q7f90afepa74tfj7dpx3kjvdr9hquudm3wgwyx5zpcrst0el5k