4 ms·
I wonder how the author would model a buffer, which by nature is mutable.
by nobodyandproud 7y ago
I wonder how the author would model a buffer, which by nature is mutable.
- ColinWright 7y agoI'm not an expert by any means, but I'm pretty sure one can implement buffers in Haskell, so it obviously can be done.
- nobodyandproud 7y agohttps://passingcuriosity.com/2015/haskell-reading-process-safe-deadlock/ https://passingcuriosity.com/2015/haskell-reading-process-sa... https://hackage.haskell.org/package/base-4.12.0.0/docs/GHC-IO-Buffer.html https://hackage.haskell.org/package/base-4.12.0.0/docs/GHC-I... None of this looks immutable.