3 ms·
Programs? Aren't we talking about variable and function names? But for the general case, Lisp does use puncuation and symbols. It just tends to use less. The o
by Zababa 5y ago
Programs? Aren't we talking about variable and function names?
But for the general case, Lisp does use puncuation and symbols. It just tends to use less. The other side of the balance is operators like ~+#>. Most languages are in the middle ground. All of these options are fine and have their uses. I wouldn't like to see stuff like ~+#> every day, but I like being able to implement <.
- Jtsummers 5y agoPrograms are composed of those things.
- Zababa 5y agoSure, but you don't use a lot of punctuation in identifier names. For example, in JS: function sumOfArray(arr) { return arr.reduce((sum, element) => sum + element, 0) } Now in Scheme: (define (sum-of-list lst) (reduce + 0 lst)) Both have punctuation, but usually not in the identifiers (except for - and _)