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

> I think they are referring to the nested nature of lisp function calls. (second-fn (first-fn val))

How's this different than:

  secondFn(firstFn(val))
 
other than the placement of parenthesis, the two cases read exactly the same, left to right.



I'm on the side of lisp here, but in OOP you'd usually write something like

    val.firstFn().secondFn()


I've seen a lot of breaking that out into the following in imperative languages.

    var intermediaryVal = firstFn(val);
    var result = secondFn(intermediaryVal);


  (let [intermediary-val (first-fn val)
        result (second-fn intermediary-val)])
Or as one of the parents said

  (-> val first-fn second-fn)




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

Search: