On Thu, Jul 30, 2020 at 8:36 PM Larry McVoy <lm(a)mcvoy.com> wrote:
Amen to that. Me too, I tried functional languages and my head hurt. C
seems so natural to me.
IMO impure functional languages like Common Lisp, ML, Scheme, and the
somewhat ironically named Pure language are straightforward extensions of
imperative programming: you can make your code less imperative without
being completely deprived of it. All of these are tail-recursive (formally
CL is not, but most implementations are) which means that recursive loops
become non-recursive gotos, and for/do-loops wind up being pure without you
noticing.
John Cowan
http://vrici.lojban.org/~cowan cowan(a)ccil.org
If a traveler were informed that such a man [as Lord John Russell] was
leader of the House of Commons, he may well begin to comprehend how the
Egyptians worshiped an insect. --Benjamin Disraeli