☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 9 months agoWhat Imperative Programming Feels Likemedia.mas.toimagemessage-square10fedilinkarrow-up159arrow-down16
arrow-up153arrow-down1imageWhat Imperative Programming Feels Likemedia.mas.to☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 9 months agomessage-square10fedilink
minus-squaresamc@feddit.uklinkfedilinkEnglisharrow-up14arrow-down1·9 months agoFunctional bros rise up!
minus-square☆ Yσɠƚԋσʂ ☆@lemmy.mlOPlinkfedilinkarrow-up4arrow-down3·9 months agoWe’re not savages, we use structural sharing in our data structures. :)
minus-squareMyFeetOwnMySoul@lemmy.calinkfedilinkarrow-up5·9 months agoNow, I don’t functional (at all), but if you call a function with no parameters, doesn’t it imply side effects?
minus-squareeluvatar@programming.devlinkfedilinkarrow-up3·9 months agoI mean it could just always return the same thing…
minus-squareMyFeetOwnMySoul@lemmy.calinkfedilinkarrow-up3·9 months agoI would think that role is filled by constants.
minus-squareakari@lemmy.blahaj.zonelinkfedilinkarrow-up3·9 months agowhere we’re going, constants are just functions
minus-squareMyFeetOwnMySoul@lemmy.calinkfedilinkarrow-up1·9 months agoJava 2: you can program anything you want but it has to be a function.
Functional bros rise up!
Rise up and copy!
We’re not savages, we use structural sharing in our data structures. :)
yes();
Now, I don’t functional (at all), but if you call a function with no parameters, doesn’t it imply side effects?
I mean it could just always return the same thing…
I would think that role is filled by constants.
where we’re going, constants are just functions
Java 2: you can program anything you want but it has to be a function.
Classes are just functions!