
2 Aug
2010
2 Aug
'10
12:10 a.m.
On 1 August 2010 20:43, Ertugrul Soeylemez
Ivan Lazar Miljenovic
wrote: No, a pure function is one without any side effects.
There are no functions with side effects in Haskell, unless you use hacks like unsafePerformIO. Every Haskell function is perfectly referentially transparent, i.e. pure.
At code-writing time, yes; at run-time there are side effects... In terms of what a function does, is readFile actually pure? -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com