Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Location of Clojures do form

Tags:

clojure

I am trying to locate where do form is defined looking in clojure.core it does not exist. I would like to figure out how do statement is translated to Java?

like image 837
Hamza Yerlikaya Avatar asked Apr 17 '11 18:04

Hamza Yerlikaya


2 Answers

Look to Compiler.java, line 4662 to see how do is handled:

like image 133
Alex Ott Avatar answered Nov 04 '22 10:11

Alex Ott


The do form is a special form and as such isn't implemented in clojure. Look through the clojure.lang.Compiler class to see how the clojure compiler treats it.

like image 45
mtyaka Avatar answered Nov 04 '22 11:11

mtyaka