#CS undergrads interested in #FP should start with a small, simple, stable funct...
amen zwa, esq. @AmenZwa@mathstodon.xyz
#CS undergrads interested in #FP should start with a small, simple, stable functional #programming language: #StandardML '97.
ML certainly is neither small nor simple compared to the initial versions of the classics, like FORTRAN, LISP, Scheme, C, Pascal, and Smalltalk. But it sure is tiny and austere compared to Miranda, Haskell, OCaml, F#, Reason, Scala, Kotlin, Swift, etc. Since ML is either a direct or an indirect ancestor of those (and many other) popular FP and OO-FP languages, mastery of this small classic guarantees a smoother learning path in those larger moderns.
In a descending order of preference, these are my favourite introductory textbooks on this little gem:
• ML for the Working Programmer, Paulson
• Functional Programming Using Standard ML, Wikström
• Elements of ML Programming, Ullman
• Elementary Standard ML, Michaelson
• Introduction to Programming Using SML, Hansen
• The Little MLer, Felleisen
Also, there are tonnes of free booklets on the Web, written by professors who taught ML, because it was, for a long time, the "first language" taught to generations of CS undergrads. I myself taught several of them back in the day, out of Ullman’s book.
My advice is this: start small, simple, and strong; then, conquer larger, harder tasks, with a stronger foundation.
PS—"ML" stands for "meta language". Initially, it was the meta language used to implement tactics for the Stanford (subsequently, Edinburgh) LCF interactive theorem prover.
PPS—Yes, I read all those books, many years ago; I never recommend any book that I have not read. And no, I did not use AI to generate this post; I do not rely upon AI to perform, in my stead, any intellectual task.