Phobos vs Tango! What's your opinion?

Deewiant deewiant.doesnotlike.spam at gmail.com
Wed Apr 18 10:04:12 PDT 2007


Alexander Panek wrote:
> Deewiant wrote:
>> [...] I don't quite agree with this, but I do prefer free functions in
>> many cases. I
>> can accept having a File class for "heavy-duty" file handling, but I
>> still find
>> myself missing a simple function for just dumping an ubyte[] array of
>> a file's
>> contents.
> 
> http://dsource.org/projects/tango/docs/current/tango.io.File.html
> 
> auto contentOfAFile = (new File( "filename" )).read;
> 
> There you go.

Of course. But I feel uneasy with throwaway objects, like I'm fighting the
library. There's probably no good reason to, but I do.

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



More information about the Digitalmars-d mailing list