• CanadaPlus@lemmy.sdf.org
    link
    fedilink
    arrow-up
    4
    ·
    17 hours ago

    And then there’s Haskell which takes the whole thing a step further still.

    Wait, what works in Haskell that doesn’t in Lisp, exactly? Are the spaces not just function composition?

    • palordrolap@fedia.io
      link
      fedilink
      arrow-up
      3
      ·
      15 hours ago

      My mistake. I had somehow missed or forgotten that Lisp also supports currying, which is what I was thinking of as Haskell taking further. There might be other things regarding type declaration and such, but that’s a little beyond me to confirm or deny at the moment.

      • bitcrafter@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        12 hours ago

        In Haskell, all functions are curried by default, so you can partially apply a function merely by applying it to fewer than the supported number of arguments.

        Also, it is worth noting that laziness-by-default in Haskell makes it so that you can use ordinary functions to define control structures, rather than needing to turn to metaprogramming like you do in Lisp.