Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does clojure allow line continuations? If so, how?

Tags:

clojure

Many languages allow for line continuations, e.g. in VB with the underscore at the end of a line, or in Tcl with a backslash at the end of a line.

Does Clojure have a way to allow for line continuations?

Thanks, chasse

like image 998
chasse Avatar asked Dec 26 '22 03:12

chasse


1 Answers

Clojure does not need "line continuations." It is delimited by parentheses. Just don't close your parentheses, and your current statement will continue.

like image 190
asthasr Avatar answered Dec 27 '22 17:12

asthasr