3 ms·
> Where LISP throws me off is the excessive use of parenthesis There's a standard way to indent lisp (the emacs way, which everybody copies) and as long as it'
by grayrest 9y ago
> Where LISP throws me off is the excessive use of parenthesis
There's a standard way to indent lisp (the emacs way, which everybody copies) and as long as it's indented properly you read it like a whitespace significant language (Python, F#, etc).
Clojure is a bit easier to read than other lisps because it uses [] for vectors, arguments, and assignment blocks and {} for maps and sets. Gives the code a bit more texture.
People writing lisp day to day use an editor feature to automatically keep parens balanced (Paredit, Parinfer). Not required since there's a learning curve but it makes editing smoother if you're going to write lisp full time. A text editor that highlights the opening paren when the cursor is on the closing one (pretty common feature) is all you really need.
- j_m_b 9y agoIt also uses fewer parens than other lisps. Clojure let statement (let [foo "bar" baz "qux"] foo) => "bar" Scheme (let ((foo "bar") (baz "qux")) foo) "bar" So in addition to additional symbols for notating vectors, map, etc, it uses fewer parens in general.