Mac to [email protected] • 1 year agoFunctional Programming vs. Object Oriented Programmingmmhaskell.comexternal-linkmessage-square34fedilinkarrow-up190arrow-down19
arrow-up181arrow-down1external-linkFunctional Programming vs. Object Oriented Programmingmmhaskell.comMac to [email protected] • 1 year agomessage-square34fedilink
minus-square@[email protected]linkfedilinkEnglish2•1 year agoAnd if it doesn’t have objects, then it has no class!
minus-square@Pipocalink0•1 year agoFunctions, here, being the key word. Functions are pure mappings from input to output.
minus-square@Pipocalink1•1 year agoI agree with you that if you use functions it’s functional. But many people don’t really realize how that contrasts with procedures and procedural code.
minus-square@Pipocalink1•1 year agoApparently my brain silently inserted “ing with” into the middle of “program functions” a half dozen times without me noticing.
If your program functions, it’s functional.
Turns out I really love functional programming after all 😹
What if my program is objectionable?
And if it doesn’t have objects, then it has no class!
Functions, here, being the key word.
Functions are pure mappings from input to output.
wooosh
I agree with you that if you use functions it’s functional.
But many people don’t really realize how that contrasts with procedures and procedural code.
I’d be oriented to object
Apparently my brain silently inserted “ing with” into the middle of “program functions” a half dozen times without me noticing.
perchance you were objectively oriented?