b***e 发帖数: 1419 | 1 I heard people talking about purity all the time, but I wonder whether the
true concern of purity in a formal sense. For instance, can anyone tell
exactly whey is Haskell is said to be purer than Lisp? |
E*****m 发帖数: 25615 | |
b***e 发帖数: 1419 | 3 But Haskell has writeVar as well, which is not so far from setq. |
r***u 发帖数: 241 | 4 Did you mean writeIORef?
【在 b***e 的大作中提到】 : But Haskell has writeVar as well, which is not so far from setq.
|
b***e 发帖数: 1419 | |
E*****m 发帖数: 25615 | 6 I thought Monads isolate these impure features?
【在 b***e 的大作中提到】 : But Haskell has writeVar as well, which is not so far from setq.
|
r*******n 发帖数: 3020 | 7 u mean pure features belong to haskel, and impure features don't, although
ones have to use them;
so haskel is pure.
【在 E*****m 的大作中提到】 : I thought Monads isolate these impure features?
|
E*****m 发帖数: 25615 | 8 No, I was just asking a question which I don't know the answer.
I don't know enough about Haskell.
【在 r*******n 的大作中提到】 : u mean pure features belong to haskel, and impure features don't, although : ones have to use them; : so haskel is pure.
|