Hi,
Since ever (or as far as I can remember), FileReference made a distinction between read and write streams, see #readStream[Do:] and #writeStream[Do:] - these return a ZnCharacterReadStream and ZnCharacterWriteStream in Pharo 7.
Along the same lines, #binaryReadStream and #binaryWriteStream where introduced.
However, the first returns a ZnBufferedReadStream (OK) while the latter returns a ZnBufferedReadWriteStream. Why ?
I think it would be generally better if a standard ZnBufferedWriteStream where returned.
ZnBufferedReadWriteStream is not a very pretty class to say the least, it also strikes me as confusing.
What would break if we changed this ?
If necessary there could be something like #readWriteStream[Do:] I guess.
Sven
|
������ | Guille Polito Research Engineer Centre de Recherche en Informatique, Signal et Automatique de Lille CRIStAL - UMR 9189 French National Center for Scientific Research - http://www.cnrs.fr Phone: +33 06 52 70 66 13 |