☆ Yσɠƚԋσʂ ☆ to Programmer [email protected]English • 1 year agoWhat Imperative Programming Feels Likemedia.mas.toimagemessage-square10fedilinkarrow-up157
arrow-up157imageWhat Imperative Programming Feels Likemedia.mas.to☆ Yσɠƚԋσʂ ☆ to Programmer [email protected]English • 1 year agomessage-square10fedilink
minus-square@[email protected]linkfedilink5•1 year agoNow, I don’t functional (at all), but if you call a function with no parameters, doesn’t it imply side effects?
minus-square@[email protected]linkfedilink3•1 year agoI mean it could just always return the same thing…
minus-square@[email protected]linkfedilink3•1 year agoI would think that role is filled by constants.
minus-square@[email protected]linkfedilink1•1 year agoJava 2: you can program anything you want but it has to be a function.
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!