☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 9 个月前What Imperative Programming Feels Likemedia.mas.toimagemessage-square9fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1imageWhat Imperative Programming Feels Likemedia.mas.to☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 9 个月前message-square9fedilink
minus-squareMyFeetOwnMySoul@lemmy.calinkfedilinkarrow-up0·9 个月前Now, 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-up0·9 个月前I mean it could just always return the same thing…
minus-squareMyFeetOwnMySoul@lemmy.calinkfedilinkarrow-up0·9 个月前I would think that role is filled by constants.
minus-squareakari@lemmy.blahaj.zonelinkfedilinkarrow-up0·9 个月前where we’re going, constants are just functions
minus-squareMyFeetOwnMySoul@lemmy.calinkfedilinkarrow-up0·9 个月前Java 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.