3 ms·
The author's argument is a strong argument against the way Lisp does it, at least for most code, as Lisp tends to put the verb to the left and nouns to the ri
by PaulHoule 1y ago
The author's argument is a strong argument against the way Lisp does it, at least for most code, as Lisp tends to put the verb to the left and nouns to the right so your IDE has no idea what nouns you are working with until you've picked the verb.
- kazinator 1y agoPretty much every functional language is verb-initial, as are function calls as well as statements in most mainstream languages. Verb-final languages like PostScript and Forth are oddballs. Embedded verbs are a thing of course, with the largest contribution coming from arithmetic expressions with infix operators, followed by certain common syntax like "else" being in the of an "if" statement, followed by things like these Python comprehensions and <action> if <condition> syntactic experiments and whatnot.
- PaulHoule 1y agoRight, his argument is in favor of the "fluent" syntax like table.where(...).select(...) that is typical in many OO interfaces, though you sometimes see a pipe syntax which would be autocomplete friendly in languages like Clojure https://clojuredocs.org/clojure.core/-%3E https://clojuredocs.org/clojure.core/-%3E or F# https://stackoverflow.com/questions/12921197/why-does-the-pipe-operator-work https://stackoverflow.com/questions/12921197/why-does-the-pi...