4 ms·
> SML is kind of like the lisp of FP. Lisp is the Lisp of FP. SML is more the SML of FP. Alternatively, SML can be viewed as the Lisp of statically-typed FP,
by dragonwriter 7y ago
> SML is kind of like the lisp of FP.
Lisp is the Lisp of FP.
SML is more the SML of FP. Alternatively, SML can be viewed as the Lisp of statically-typed FP, in that, loosely, SML : Static FP :: Lisp : DynamicFP
- gpderetta 7y agoScheme is the lisp of FP. My understanding is that idiomatic lisp is quite imperative.
- wirrbel 7y agoSo is scheme quite often. It appears functional looking at idiomatic scheme code relying on tail-recursive programming for loops, it appears procedural/imperative if you look at all the mutation used in scheme code (fun fact: the Scheme standards R*RS do not speak of functions but of procedures). Higher-order functions aren't used all that much in many scheme code bases which is odd from the perspective of a Haskell dev.
- gpderetta 7y agoThanks for the info. My knowledge of the lisp family is quite limited outside of emacs lisp (which usually has a quite imperative feeling).
- afiori 7y agoWith my limited experience lisp is significantly not functional, or better is definitely an outlier in an unusual direction in the cluster of functional languages. To me it feels much more like a symbolic computation oriented language. But maybe it is because I associate too much fp with some kind of parametric typing
- mumblemumble 7y ago"Functional programming" is a term with a few meanings. Notably, the paper that (I believe) coined the term, "Can Programming be Liberated from the Von Neumann Style?" by John Backus, spent a fair amount of ink on specifically calling lisp out, and contrasting it from what he had in mind. IIRC, he felt that FP was preferable to the lisp model because lisp gives you too much power: Mutable variables, ways of composing functions that are potentially more error prone due to domain/range mismatch gotchas, stuff like that could all be impediments to ensuring the correctness of programs. I think that, to some extent, a sort of Haskellian fastidiousness about correctness is what he felt this proposed functional style of programming was all about.