@kora@sh.itjust.works to Programmer Humor@programming.dev • 21 days agostopsh.itjust.worksimagemessage-square53fedilinkarrow-up1506arrow-down126
arrow-up1480arrow-down1imagestopsh.itjust.works@kora@sh.itjust.works to Programmer Humor@programming.dev • 21 days agomessage-square53fedilink
minus-square@bleistift2@sopuli.xyzlinkfedilinkEnglish6•21 days ago even property/field access is extracted out to a function Java, the most functional programming language there is.
minus-square@douglasg14b@lemmy.worldlinkfedilink5•21 days 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-221 days 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;
)