• ZILtoid1991@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    15 hours ago

    Also does anyone remember the time when functional programming was supposed to become standard everywhere by now? I heard about Rust that way first (they didn’t even advertise the memory safety that much back then), and even remembered people begging the D Language foundation for “const by default” and adding mutable as a keyword alongside the slow deprecation of const.

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      8
      ·
      14 hours ago

      Yeah, the hype has died a little now, but over the past decade or so there was definitely a surge. Functional paradigms are definitely useful, but like a lot of things you can take it too far. I think one of my favorite criticisms was that the real world is mutable and has state so most programming languages will have to have that everywhere.

      You can get a lot of the good from functional programming in non functional languages just by using immutable data types and pure functions.