Skip to content

Commit

Permalink
* src/clj/cljs/core.clj: add coercive-not
Browse files Browse the repository at this point in the history
  • Loading branch information
David Nolen authored and David Nolen committed May 3, 2012
1 parent 2cd15f8 commit 17a22ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/clj/cljs/core.clj
Expand Up @@ -54,6 +54,10 @@
(defmacro nil? [x]
`(coercive-= ~x nil))

;; internal - do not use.
(defmacro coercive-not [x]
(bool-expr (list 'js* "(!~{})" x)))

;; internal - do not use.
(defmacro coercive-not= [x y]
(bool-expr (list 'js* "(~{} != ~{})" x y)))
Expand Down

0 comments on commit 17a22ac

Please sign in to comment.