Email or username:

Password:

Forgot your password?
Top-level
Mikko Koski ๐Ÿ‡ซ๐Ÿ‡ฎ

@plexus Isn't there quite strong concensus that functions ending in question mark should return boolean? Sets return the item, which isn't boolean, necessarily.

2 comments
Arne Brasseur

@rap1ds is there? I think the only concensus is that it's generally a predicate, so output should be truthy/falsy.

Mikko Koski ๐Ÿ‡ซ๐Ÿ‡ฎ

@plexus I read this from Clojure FAQ โ€œMore specifically, a trailing ? indicates that a predicate strictly returns a boolean result (true or false)โ€ clojure.org/guides/faq#qmark_b

Go Up