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

Bradley Chatha sealabjaster at gmail.com
Tue Feb 28 17:46:25 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.

Oh wow, that's definitely an interesting idea.

Have you written down a more refined version of these thoughts?


More information about the Digitalmars-d mailing list