this code
| stream gzstream |
stream := RWBinaryOrTextStream on: ByteArray new.
gzstream := GZipWriteStream on: stream.
gzstream nextPutAll: #[1 2 3 4].
gzstream close.
stream reset.
^ stream contents.
versus
| stream gzstream |
stream := ByteArray new writeStream.
gzstream := GZipWriteStream on: stream.
gzstream nextPutAll: #[1 2 3 4].
gzstream close.
^ stream contents.
Because we love complexity so much?