r/functionalprogramming • u/metazip • 4d ago
Question What is your take on John Backus’s assertion that the FP (point-free) style is, in his view, more advantageous than the lambda calculus?
[Backus1981a] took up the lambda style (e.g., LISP [McCarthy1960] and Landin's ISWIM [Landin1964]): "In general, we suggest that the FP style offers a framework in which one can perceive and reason about program structures, truths, and transformations at a higher level of generality than that presently available for reasoning about lambda style programs." He acknowledged that using lambda abstraction one can define all of the FP program forming operations and "an infinity of others," but argued that this power would lead to undisciplined use and concluded: "Therefore perhaps it is time to begin designing a new generation of functional languages, languages that emphasize function level structure and function level reasoning."
11
u/james_haydon 4d ago
I agree with him and it is why I created https://github.com/jameshaydon/lawvere
The idea is that reasoning about programs becomes simpler when stated pointfree, because proofs are then equational reasoning without variables getting in the way. This is also the view in A pointless dérivation of radix sort (Gibbons, 1999).
I don't claim lawvere-lang gets anywhere close to what Backus dreamed of, but I still thing we should try.
3
u/nrnrnr 4d ago
Point-free code is sometimes beautiful but always hell to maintain. My brain needs some of those intermediate values to be named.
Source: longtime Haskell programmer.
2
u/Inconstant_Moo 2d ago edited 2d ago
So as usual "it depends", in this case on whether that is what you want functional programming for. Suppose I don't need to reason about program transformations at a higher level of generality, and suppose I find code easier to think about if I give names to the things I'm thinking about, because of me being human. What then?