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

Guillaume Piolat first.last at spam.org
Wed Mar 1 10:52:29 UTC 2023


On Wednesday, 1 March 2023 at 07:45:26 UTC, tastyminerals wrote:
>
> Yeah, this sounds like magic if it works and has a big "wow" 
> effect potential for any new D user.

For that to work you would still need version information for 
imports.

@dependency("~>2.0") import audioformats;

It also wouldn't work with configurations:


     mixin myTemplateThatDependUponAVersion!(stuff);


if myTemplateThatDependUponAVersion is declared in another 
dependency, that then depends upon a version, then the magic 
parser has no way to know that, or that this program would need a 
configuration, or that a configuration needs two different 
version.

Then you would need:

     @configuration(bubbleUp, "myConf") 
version("myVersionIdentifier")
     {
         // blah
     }


Now you need to parse all possible dependencies to know the 
configurations? The build description is still encoded in your 
program but distributed.
Not sure what to think of that.





More information about the Digitalmars-d mailing list