I hate new DUB config format

Chris via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 30 10:23:07 PST 2015


On Monday, 30 November 2015 at 18:13:11 UTC, Ola Fosheim Grøstad 
wrote:
> On Monday, 30 November 2015 at 18:02:34 UTC, Chris wrote:
>> YAML takes spaces into account, doesn't it? That's a source of 
>> unnecessary, Pythonesque bugs.
>
> Most editors support YAML so you should get no Pythonesque bugs 
> since they enforce WYSIWYG.  I have more issues with my 
> handwritten JSON than YAML.
>
> But there is nothing wrong in constraining the format as long 
> as the resulting file is compatible.
>
> http://www.yaml.org/spec/1.2/spec.html#Basic

I once wrote a description in YAML. Spaces (or lack of them) lead 
to stupid errors. Not to mention the pain of copying and pasting 
with different indentation levels. If you have to use an editor 
to help you with indentation levels, there's something wrong, it 
means that it's not trivially easy.

When will people understand that indentation should not be part 
of a language's syntax?


More information about the Digitalmars-d mailing list