Phobos vs Tango! What's your opinion?

Deewiant deewiant.doesnotlike.spam at gmail.com
Wed Apr 18 10:36:19 PDT 2007


Alexander Panek wrote:
> I've got an issue with throw away objects, too, but given the fact, that you
> just want a file's content no matter what format it is... the whole process
> is a bit hackish, and I'd recommend to use other, less hackish solutions of
> tango's IO package. Even if that would mean two lines of source code more,
> you won't have throw away, and a proper, tested way of reading data from a
> file.
> 

That's true. Sometimes, however, a hackish method is best.

Maybe it's just my general "OO only where it's needed" philosophy showing
itself: I'd rather read the raw file contents and work with that, than inherit a
Tango file class, redefining methods to handle whatever file format I'm dealing
with --- this, I suppose, is what would be the proper "less hackish" method in
this case.

-- 
Remove ".doesnotlike.spam" from the mail address.



More information about the Digitalmars-d mailing list