• bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    2
    ·
    5 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
      arrow-up
      5
      ·
      5 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
        arrow-up
        3
        ·
        edit-2
        5 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;)