[haiku-development] Re: ZlibCompressor/ZlibDecompressor classes

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 26 Nov 2013 14:33:47 +0100

Hi,

On 26.11.2013 13:25, Adrien Destugues wrote:
What's the use for the BDataOutput class? Did I miss something that makes
BDataIO unsuitable?

IMHO BDataIO is a design mistake, in that it features both reading /and/ writing. Code like BDataOutput makes it clear that in practise one often needs either reading /or/ writing, not both. If a design forces you to implement a method that you don't want, something is wrong with the design.

Best regards,
-Stephan


Other related posts: