• 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.