@[email protected] to Programmer [email protected] • 1 month agostopsh.itjust.worksimagemessage-square53fedilinkarrow-up1507arrow-down126
arrow-up1481arrow-down1imagestopsh.itjust.works@[email protected] to Programmer [email protected] • 1 month agomessage-square53fedilink
minus-square@[email protected]linkfedilinkEnglish6•1 month ago even property/field access is extracted out to a function Java, the most functional programming language there is.
minus-square@[email protected]linkfedilink5•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@[email protected]linkfedilinkEnglish3•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;
)