Fwd: Fwd: [Haskell-cafe] Haskell as a religion

---------- Forwarded message ----------
From: Alberto G. Corona
wrote: In C/C++ referential transparent functions code can be declared by appending a 'const' to the prototype, right?
For one thing, some fields in a const C++ object can be explicitly set mutable. mutable is sometimes used in C++ a similar way to unsafePerformIO in Haskell. You have something that uses mutability in its internals but that mutability shouldn't be observable to the caller. In both cases you have no means of actually ensuring that the mutability is actually unobservable. -- Dan
participants (1)
-
Alberto G. Corona