Article: Why I use the D programming language for scripting
Виталий Фадеев
vital.fadeev at gmail.com
Tue Feb 2 04:36:41 UTC 2021
On Tuesday, 2 February 2021 at 04:24:48 UTC, Виталий Фадеев wrote:
> On Tuesday, 2 February 2021 at 03:53:43 UTC, Виталий Фадеев
> wrote:
>> On Sunday, 31 January 2021 at 20:36:43 UTC, aberba wrote:
>>> It's finally out!
>>>
>>> https://opensource.com/article/21/1/d-scripting
>>
>> If the article is about scripting, then the article will
>> contain examples of scripts used in business.
>>
> And we see what it not simple as windows .bat
Perhaps the best version would be a high-level add-on over rdmd
with Dlang syntax.
.
"main()" and "import std" will be hidden.
For example, the final result will look like this:
dirEntries( args[0].dirName, SpanMode.shallow )
.filter!( a => a.isDir )
.map!( a => buildPath( a.name, ".dub" ) )
.filter!( a => a.exists )
.each!(
( a )
{
writeln( a );
rmdirRecurse( a );
}
);
and the file will have the extension ".ds"
More information about the Digitalmars-d-announce
mailing list