Talk:Haskell/Mutable objects

Opening comments
Here is a passable initial version of this chapter. Notes on choices and possible improvements:


 * There are two paragraphs on concurrency. For obvious reasons (there will be a proper chapter on the subject) they don't do more than stating the problem and saying MVars and STM can help solving it.


 * The brief discussion about existentials doesn't link to the chapter about existentials. That is intentional, as I sense that without a cleanup the discussion about ST there might cause confusion.


 * The ST example is utterly trivial. I actually prepared a somewhat more interesting toy example using the hashtables package, but before adding it I would rather double-check whether it is too stupid/byzantine/inefficient.


 * The mutable data structures section is basically "This exists. Use it if necessary.".


 * I removed the memoisation example that used to be here, mainly because I felt that showing how it should be used in a situation that makes sense would require going off in too many tangents (cf. this StackOverflow question). Feel free to add it back if you disagree. : This is the last revision containing it.


 * It might be interesting to quote, with adjustments, parts of the further reading links.

Duplode (discuss • contribs) 14:11, 18 July 2015 (UTC)