3 ms·
Andrew Koenig is someone who invested a big chunk of his life into C++ and stuff of the same ilk. There is a psychology that people invested in things have to d
by kazinator 4y ago
Andrew Koenig is someone who invested a big chunk of his life into C++ and stuff of the same ilk. There is a psychology that people invested in things have to defend their sunk cost against alternatives, using false arguments.
"Multics Emacs proved to be a great success—programming new editing commands was so convenient that even the secretaries in his office started learning how to use it. They used a manual someone had written which showed how to extend Emacs, but didn't say it was a programming. So the secretaries, who believed they couldn't do programming, weren't scared off. They read the manual, discovered they could do useful things and they learned to program." -- Richard Stallman
Good luck with secretaries extending an editor using C++
Expressions in Lisp often end together. This is extremely unimportant, so we lump these ends together ))))))).
When expressions don't end together ))) stuff))), we use line breaks and indentation.
(this (is one
unit))
more stuff
(this (is (another
unit))
inner stuff
ends here)
more stuff
In the typical style of C like languages and other Algols, even statements that end together have their end markers separated out:
end if
end while
end for
}
}
}
Sometimes comments are added
}
}
} // for
Some coding stylews in C likes call for opening braces being vertically aligned with closing ones, rather than "cuddled" into the same line:
if (...)
{
for (...)
{
}
}
All these practices indicate that maybe it's not so easy to find the beginning of a construct from the end in the languages that Koenig has dedicated himself to.