Re:Interview with Simon Peyton-Jones
by tathougies on Thursday April 19, 2018 @09:39PM
(#16881544)
Most imperative languages have an intermediate language in which local variables are immutable. However, purity is about more than immutability. For example, in C++
Can be written to not overwrite x
This is equivalent in some ways to Haskell
However, I know that in Haskell, evaluating 'doSomething x' will not turn off the computer, display anything to the user, or launch missiles. I have no idea what evaluating 'doSomething(x)' does in C++. It may add things to caches, exit the program, etc.
[ Parent
| on HN ]
There are no comments on this comment yet.