dub: JSON, SDL, YAML, TOML, what color should we paint it ?

tastyminerals tastyminerals at gmail.com
Wed Mar 1 07:45:26 UTC 2023


On Tuesday, 28 February 2023 at 16:32:42 UTC, Adam D Ruppe wrote:
> On Tuesday, 28 February 2023 at 16:10:19 UTC, Steven 
> Schveighoffer wrote:
>> module buildfile;
>
> This isn't what I'm talking about at all.
>
> I don't want to run D to build, I want to *introspect* D for 
> build info. You can read module names, dependencies (including 
> platform-specific and configuration-specific ones) right out of 
> D code. Author, description, license, etc., have standard ddoc 
> sections in D code.
>
> Other things dub.json define like flags could easily be a UDA 
> on the module declaration and be pulled out pretty easily by 
> compilers or even relatively basic parsers.
>
> Even subconfigurations can... kinda be pulled out of D code by 
> looking for version blocks though that's probably another thing 
> I'd put on a UDA.

Yeah, this sounds like magic if it works and has a big "wow" 
effect potential for any new D user.


More information about the Digitalmars-d mailing list