[phobos] What's the status of listDir/listdir ?
Andrei Alexandrescu
andrei at erdani.com
Thu Jun 9 15:15:46 PDT 2011
Make the minimum amount of work to not break people's code now while at
the same time paving the road to change.
Andrei
On 6/9/11 3:31 PM, Dmitry Olshansky wrote:
> Next question in the row - what to do with a mission to swap std.regexp
> to std.regex?
> Right now, std.file listDir is the only one function in the whole Phobos
> that uses std.regexp.
> I managed to set it on the std.regex rails, but making soft deprecation
> warning appear at the right time without breaking alias listdir
> ->listDir is a messy thing. Now it seems like a bad idea to update
> already deprecated API ;)
> So, should I make all of listdir/listDir templated so that they show
> deprecation warnings when used?
>
>> Both listDir and listdir should go.
>>
>> Andrei
>>
>> On 6/9/11 3:15 PM, Dmitry Olshansky wrote:
>>> As it stands now listdir is deprecated in favor of listDir, according to
>>> one part of Ddoc for std.file:
>>> $(RED Scheduled for deprecation in August 2011. Please use $(D listDir)
>>> instead.
>>>
>>> Another part says:
>>> $(RED Scheduled for deprecation in August 2011.
>>> Please use $(D dirEntries) instead.
>>>
>>> So what is the most relevant?
>>>
>
>
More information about the phobos
mailing list