I hate new DUB config format

Daniel Kozak via Digitalmars-d digitalmars-d at puremagic.com
Thu Nov 26 04:09:34 PST 2015


V Thu, 26 Nov 2015 05:45:56 +0000
Mike Parker via Digitalmars-d <digitalmars-d at puremagic.com> napsáno:

> On Thursday, 26 November 2015 at 04:42:14 UTC, David DeWitt wrote:
> 
> >
> > Is there any document explaining how to default to JSON so it 
> > isn't necessary to specify each time? Also SDL isn't the 
> > default so if they both stay shouldn't the discussion be which 
> > is the default or if the user chooses their preference at 
> > sometime after install (maybe first project)?  
> 
> If it's really so painful to type 'dub init -fjson', then sure, 
> let's revert to JSON as the default and the rest of us can type 
> -fsdl. I never use 'dub init' anyway, so I have no personal stake 
> in which is the default.

Thats not a problem. What I dont like is to have two formats for one
thing. I don't care which one will be used (OK I maybe prefere JSON
because of tooling and SDL because of syntax :)), but there should be
only one format. Having more formats complicates everything.

1) You have to describe both variants

2) People using dub probably need to know both formats

3) When writing some tool or IDE you need to support both variants (no
dub describe does not solve this)

Btw. when your book will be published? :)






More information about the Digitalmars-d mailing list