whitespace

special charactersince v0.0-927 in clojure in ednEdit

Any number of whitespace characters can be used between forms, but is optional around delimiters. Commas are considered whitespace. The following are equivalent:

  • #js [ 1 2 3 ]
  • #js [1 2 3]
  • #js [1, 2, 3]
  • #js[1 2 3]
  • #js[1,2,3]

Indentation is two-spaces, not tabs, by convention.


Details:

See indentation conventions here.

See Parinfer if you want the structure of your code to change based on indentation.


See Also: