3 ms·
> Significant whitespace seems like a good idea and looks great in small examples but it has some very serious downsides in real use. In some contexts, sure, w
by dragonwriter 6y ago
> Significant whitespace seems like a good idea and looks great in small examples but it has some very serious downsides in real use.
In some contexts, sure, which is one reason why YAML has two presentational styles with equal semantic power, between which a suitable tool can convert mechanically, and only one of those two styles features whitespace sensitivity.
> Being able to reliably reformat hundreds of lines of code with a single keypress is far more valuable than a few saved braces.
YAML gives you the ability to freely switch between a presentational style which provides the former and one which provides the latter, with no loss of semantic power, so it doesn't really matter which is better, since you don't have to choose between one and the other.
- cageface 6y agoIf Python & Haskell had this I'd be more inclined to use both of them.
- dragonwriter 6y ago> If Python & Haskell had this I'd be more inclined to use both of them. Haskell does. https://en.m.wikibooks.org/wiki/Haskell/Indentation https://en.m.wikibooks.org/wiki/Haskell/Indentation