top | item 42965732

(no title)

hencq | 1 year ago

A bunch of lisps do that. Clojure for instance or arc use conventions like that to reduce the number of parentheses.

See e.g. cond in clojure: https://clojuredocs.org/clojure.core/cond

discuss

order

diggan|1 year ago

> Clojure for instance or arc use conventions like that to reduce the number of parentheses

Clojure also reduces parentheses by introducing more characters for various data-structures (good and bad, many would say), like [] for vectors, which are for example used for arguments when defining functions

    (def add-five [a]
      (+ a 5))