4 ms·
I note that Guy Steele's examples support a language which has a sufficient vocabulary. (Which can be easily expanded.) There is no example which argues for a
by stcredzero 18y ago
I note that Guy Steele's examples support a language which has a sufficient vocabulary. (Which can be easily expanded.) There is no example which argues for a large syntax.
EDIT: I would also need to add that a language that wants to be widely popular needs a large enough syntax. Even though it results in a less elegant design, enough cultural expectations need to be respected so that programmers are immediately comfortable. Python is close to this ideal. (But definitely errs on the side of being too large.) Operator precedence is so deeply ingrained in engineering and technical culture, that it is a non-negotiable for many programmers.
To put it another way, algebras are a pattern most expect to be a feature of a language. (This is written by a Smalltalker, who is perfectly comfortable working in a language with its own, much simpler, rules of precedence.)
EDIT: Languages should be designed so that it is easy to implement Algebras and easy to use Algebras!