Created
July 22, 2019 19:19
-
-
Save Hendekagon/239a8decc678f643336ef85fbe5c537b to your computer and use it in GitHub Desktop.
Clojure eval right?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(let [eval-right? clojure.core/eval] (intern 'clojure.core 'eval (fn [form] (if (= 'right? (last form)) (eval-right? (butlast form)) 'right?)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(let [eval-right? clojure.core/eval] (intern 'clojure.core 'eval (fn [form] (if (= 'right? (last form)) (eval-right? (butlast form)) 'right?))))
from now on you must end expressions with "right?" to evaluate them:
This is in order to conform to the way all speakers in tech end their statements in 2019