5 ms·
Any functional language, pretty much. They use enumeration (list/array traversal) to process a list/array of inputs. And it entirely makes impossible the off-
by pmarreck 7y ago
Any functional language, pretty much.
They use enumeration (list/array traversal) to process a list/array of inputs.
And it entirely makes impossible the off-by-one error.
I am happy if I never have to see a for-loop again. (Even in JS, I use iteration/enumeration constructs as much as possible.)
- xmprt 7y agoI find it hard to believe a beginner with no theoretical CS background would pick up a functional language first. So the question still stands.
- zshrdlu 7y agoHow strange. Why would you find it hard to believe? It is one of several programming paradigms, after all. Am I missing something?
- pmarreck 7y agoThe "advanced intro CS" class at Cornell (CS 212, at least at the time) used Scheme. Maybe I should become a high school CS teacher, because I would not curse anyone with a procedural language.