Re:Why are we templating YAML?
by necubi on Thursday February 07, 2019 @07:22PM
(#19110073)
It's a haskell thing. The main advantage is that each line is independent. You can comment out a line or add a line at the end without modifying anything else.
[ Parent
| on HN ]
Re:Why are we templating YAML?
by basil-rash on Thursday February 07, 2019 @09:40PM
(#19111020)
Each line is not independent: you cannot comment out the first line. A better approach is to allow trailing commas. (I suppose you could allow leading commas, does Haskell support this?)
Unfortunately no.
Allowing trailing commas, like Python does, would be really great. Unfortunately trailing commas already mean something: (a,b,) is a function that still takes 1 argument to make a triple. It's called "TupleSections".