by ldb on 5/20/19, 12:45 PM with 2 comments
by RNeff on 5/20/19, 4:37 PM
The problem occurs when: 1. the function has more than two arguments; 2. the function is semantically different from the meaning implicit in a math symbol.
One solution is use the same syntax for all functions. In Lisp, every thing is a list, so ( function ( parameters )). In Smalltalk, every thing is an object, so send a message to an object with parameters.
Read the Lisp manual, and the SmallTalk-80 book about the language design theory.
The big boost in program readability is following a style guide with the rules for naming, indentation, commenting, and other important features, plus automated or manual style reviews.
The Hungarian notation for variables was an attempt to document the type of a variable in a language, 'C', which had loose typing rules.