• @bleistift2@sopuli.xyz
    link
    fedilink
    English
    621 days ago

    even property/field access is extracted out to a function

    Java, the most functional programming language there is.

    • @douglasg14b@lemmy.world
      link
      fedilink
      521 days ago

      Well, this is in JS to be clear

      Instead of

      const name = user.name

      It’s

      const userToName(user) => user.name;

      const name = userToName(user);

      Ad nauseum.

      • @bleistift2@sopuli.xyz
        link
        fedilink
        English
        3
        edit-2
        21 days ago

        I was afraid you’d say that. That’s stupid.

        Do they give a reason for why that’s ‘necessary’?

        (Also it should be const userToName = (user) => user.name;)