I got confused reading this because I wasn't sure how I, as a reader with no knowledge of the system under discussion, was supposed to know that all the buckets should be in the same region. Nor is it clear to me how the "for loop" version would handle the case where exceptionally one bucket is different. Which is a more interesting discussion imho, that's the whole point of having it as a configuration field, after…
Abstraction, not syntax
61–67 of 67 posts
Re: Abstraction, not syntax
#62Re: Abstraction, not syntax
#63FOR loops? YAML has a merge key The merge key is a clever little trick, but it depends of the special hash key, so lists can’t be merged. Syntax does matter, which is why YAML matters — even if imperfect.
Doesn't help every yaml parser has their own opinion on what a merge or an anchor should do, exactly.
Re: Abstraction, not syntax
#64Re: Abstraction, not syntax
#65Re: Abstraction, not syntax
#66I don't think the title and the article really communicates it's case well. Did not understand the goal until 90% through the article when they showed the source code of RCL with the loops. This isn't syntax vs abstraction. This is how much programming language power do you want to enable in your configuration language. This is a big difference and I think we miss the interesting part of that discussion because we di…
Re: Abstraction, not syntax
#67As someone who's spent most of their career in cloud IAC, and likes to think they are pretty read up on the latest going on in that world, if you didn't know better you'd think YAML is one of the greatest threats facing mankind. There are plenty of things I certainly hate about it, but every configuration syntax I've ever used I have similar gripes about. It's like once a month this kind of "The world is growing tire…
> And guess what? They hate the HCL too. Don't want to sound too harsh, but to me HCL is even worse than plain YAML. By expressiveness, HCL is somewhat similar to Ansible-flavoured YAML - in both you need to use magic keywords to create any kind of abstraction (e.g. a loop). HCL is worse than regular YAML because there's only one "true" parser for it, that is official Hashicorp's HCL parser. So if you are locked into…