[Haskell-cafe] Why Haskell is beautiful to the novice

Alexey Muranov alexey.muranov at gmail.com
Mon Aug 31 08:27:36 UTC 2015


On 31 août 2015, at 06:11, Richard A. O'Keefe <ok at cs.otago.ac.nz> wrote:

> Sorry, cliekd the wrong button.
> If you had troubled to read the Wikipedia article with care,
> you'd have seen this right at the beginning:
> 
> 	In computer science, a function or expression is
> 	                               VVVVVVVVVVVVVVVVVVVVVVVV
> 	said to have a side effect if, in addition to returning
> 	                               ^^^^^^^^^^^^^^^^^^^^^^^^
> 	a value, it also modifies some state or has an observable
> 	interaction with calling functions or the outside world.
> 
> You have a function, whose purported effect is to return a
> value.  "IN ADDITION TO" that, it has "A SUBSIDIARY CONSEQUENCE",
> "A SECONDARY RESULT".

In my opinion, with such interpretation there can be no documented side effects: if some effect is documented, it is purported (an probably used by someone), so not secondary.

Alexey.


More information about the Haskell-Cafe mailing list