Re:What can be learned from studying long gone development p...
by int_19h on Monday August 16, 2021 @01:46PM
(#28200786)
OCaml has while- and for-loops.
A better example might be Clojure, which has mutable variables (opt-in, like OCaml), but no traditional imperative loops - only recursion. However, even then, the syntax for its tail-recursive construct uses "loop" as a keyword.
Re:What can be learned from studying long gone development p...
by lostcolony on Monday August 16, 2021 @06:37PM
(#28203833)
I said immutable -> !loops (p implies not q).
You're saying !immutable -/> loops (not p does not imply q)
It's a fair thing to mention, but you're not gainsaying anything I said; I never said anything about mutable languages that don't have loops. In fact, to the topic at hand, you would assume that to be the case, given that structured programming was intended to force loops on languages at the time (mostly mutable) that weren't using them (but instead were using gotos and the like)
These two are not as intertwined as you make them. OCaml has mutation but not iteration.