More complexity creep in Phobos

Kagamin spam at here.lot
Thu Mar 28 11:40:40 UTC 2019


On Thursday, 28 March 2019 at 07:32:33 UTC, Andrei Alexandrescu 
wrote:
> On 3/28/19 1:36 AM, Meta wrote:
>> DirEntry states that it is a subtype of `string`
>
> No, please refer to the "Generality creep" thread.

DirEntry is implicitly convertible to string because it needs to 
be usable with std.file, which is a big untyped ball of strings.
Compare with scriptlike 
https://github.com/abscissa/scriptlike#filepaths that has typed 
wrappers for paths (though I prefer separate wrappers for files 
and folders).


More information about the Digitalmars-d mailing list