interstar
interstar

Reputation: 27196

What are the prefered names for true and false in Clojure?

In Clojure, if I'm writing a test function and want to return boolean values from it, what's the right way to express these?

Upvotes: 0

Views: 109

Answers (1)

edbond
edbond

Reputation: 3951

true and false are perfectly valid in Clojure

Give me some Clojure:
> true
true
> false
false
> (type true)
java.lang.Boolean
> (type false)
java.lang.Boolean

Upvotes: 1

Related Questions