#lisp / #scheme / etc people, a style question. I frequently seem to find (as a ...

@benjamineskola@hachyderm.io

#lisp / #scheme / etc people, a style question.

I frequently seem to find (as a not-super-experienced lisp user) that what I want to do is run a series of functions building upon each other. So what I end up doing is something like (precise syntax depending on the version of lisp, obviously):

(let ((a (do-a-thing))
(b (another-thing a))
(c (one-more-thing b))
(some-final-step c))

Is this a weird pattern? Is there a better approach? I don't really think nesting all the function calls without intermediate variables would be an improvement, but it feels odd if most of the work of let is being done in the definitions and not the body.

(I guess #clojure / #fennel etc have pipeline operators which might be useful in some cases — but I've also found that the value to be passed forwards isn't always the first/last/whatever paramete, so I'd end up needing a lambda to use the pipeline. let just works.)