DEV Community

Discussion on: Explain Haskell like I'm five

Collapse
 
idanarye profile image
Idan Arye

Haskell is a language which places a lot of value on the idea that functions should only be able to have effects on the things you pass into them.

Actually, no - functions in Haskell are not able to affect the things that you pass into them. They are only able to affect their own return value.

Collapse
 
17cupsofcoffee profile image
Joe Clay • Edited

Whoops, yeah - only affected by the things you pass in, only has an effect on the return value. You're totally right, I'll update my comment.

Thread Thread
 
terceranexus6 profile image
Paula

Thank you both guys!