
8 Sep
2010
8 Sep
'10
5:12 a.m.
2010/9/8 Bryan O'Sullivan
I'm afraid not. The TextEncoding type ties encoding and decoding together, when in pure code you need just one or the other. The TextEncoding design is fine for read/write Handles, where you may need both, but it does not make sense for pure code, where the current API provided by text is more appropriate.
I don't see how this is related to purity. I can't believe that it is not possible to design single coherent API suitable for both purposes.