@kora@sh.itjust.works to Programmer Humor@programming.dev • 1 month agostopsh.itjust.worksimagemessage-square53fedilinkarrow-up1503
arrow-up1503imagestopsh.itjust.works@kora@sh.itjust.works to Programmer Humor@programming.dev • 1 month agomessage-square53fedilink
minus-square@bleistift2@sopuli.xyzlinkfedilinkEnglish8•1 month ago even property/field access is extracted out to a function Java, the most functional programming language there is.
minus-square@douglasg14b@lemmy.worldlinkfedilink5•1 month agoWell, 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.
minus-square@bleistift2@sopuli.xyzlinkfedilinkEnglish3•edit-21 month agoI 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;)
Java, the most functional programming language there is.
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.
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;
)