Hacker News new | past | comments | ask | show | jobs | submit login

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.)




I find it hard to believe a beginner with no theoretical CS background would pick up a functional language first. So the question still stands.


How strange. Why would you find it hard to believe?

It is one of several programming paradigms, after all. Am I missing something?


The "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.




Applications are open for YC Winter 2020

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: