Why are some (many) of Clojure’s built-in functions defined using def, not defn?
I know that defn is a shortcut for def, but I’m wondering if there’s some other reason such as efficiency/readability/style considerations/bootstrapping.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Read further down in clojure/core.clj –
defndoesn’t exist yet at the top, because that file is building the language as it goes. After several hundred lines,defnis written, and functions after that are defined withdefn.