Haskell programs side effect all the time, there's no prohibition or even cultural aversion to effects. The only "effect"-related thing we really avoid is the way in many languages one uses the stack, the heap, and static memory as a myriad of little ad hoc in-process databases.
-
Show this thread
-
Replying to @chris__martin
I feel we're in a bind because there's now disagreement on what "side-effect" means. When I read Hughes's "Why Functional Programming Matters" it clearly says "functional programs contain no side-effects at all." So I comprehend this thread, but I'm unhappy with the terms.
3 replies 0 retweets 5 likes -
Replying to @shajra @chris__martin
In the past I've made a case that Haskell allows us to denote "effects" without "side-effects." Is my usage of these terms valid in light of other usages? Appeal to authority may be a logical fallacy, but it's not as bad when dealing with a semantic debate.
1 reply 1 retweet 3 likes -
Replying to @shajra
I think distinction between "effects" and "side-effects" doesn't exist in popular consciousness, so we're well into invention of terminology. Which is fine if you're writing a book and you can define words upfront, but I'm speaking to a general audience in already accepted terms.
5 replies 0 retweets 2 likes -
Replying to @chris__martin @shajra
It may be argued that a distinction may not exist, but whatever you arrive at, you need a way to explain that IO is as much a side-effecting value as []. Otherwise, you'll end up with another artificial distinction *and* broken students.
1 reply 1 retweet 2 likes -
I don't see the point in calling something an "effect" just because a functor is involved. If list concatenation wasn't an effect here λ> [1,2] ++ [3,4] [1,2,3,4] Then why it is it an effect here? λ> Failure [1,2] *> Failure [3,4] Failure [1,2,3,4]
2 replies 0 retweets 1 like
I could agree to this argument. I'm just saying you now need a way to say that IO is as side-effecting as [].
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.