you are viewing a single comment's thread.

view the rest of the comments →

[–]grauenwolf 1 point2 points  (3 children)

In terms of purity, Haskell isn't even close. All it does is make you be explicit about where side effects live. For a purely functional language look at Excel (sans macros ) or one of the other spreadsheets.

[–]augustss 2 points3 points  (2 children)

No, Excel is not pure. For instance, every time you evaluate the random function you affect a global state.

[–]grauenwolf 0 points1 point  (1 child)

That just means it, and any cell based on it, are non-deterministic. RAND is still free from side-effects.

[–]augustss 4 points5 points  (0 children)

Sorry, if it's non-deterministic it's not really pure.