@kora@sh.itjust.works to Programmer Humor@programming.dev • 22 days agostopsh.itjust.worksimagemessage-square53fedilinkarrow-up1506arrow-down126
arrow-up1480arrow-down1imagestopsh.itjust.works@kora@sh.itjust.works to Programmer Humor@programming.dev • 22 days agomessage-square53fedilink
minus-square@bleistift2@sopuli.xyzlinkfedilinkEnglish6•22 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•22 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-222 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;
)