Language use for Bicep templates #1518
-
The Bicep templates look like a mix between JSON and YAML. Double quotes and commas have been removed but we still have curly braces. I'm curious why the team didn't go further in cleaning up the format and fully adopt YAML? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Syntactically, yes it is a bit of a hybrid, but it's important to understand that ARM Templates have always been their own language/DSL, just a DSL that was embedded inside a JSON data structure. Shoehorning one language into another is part of the reason why ARM Templates are so difficult. If we moved directly to YAML, it is true that readability (and debatably authoring) would have gotten better, but marginally so. You'd still fundamentally have the same types of problems of embedding one language in another. |
Beta Was this translation helpful? Give feedback.
Syntactically, yes it is a bit of a hybrid, but it's important to understand that ARM Templates have always been their own language/DSL, just a DSL that was embedded inside a JSON data structure. Shoehorning one language into another is part of the reason why ARM Templates are so difficult.
If we moved directly to YAML, it is true that readability (and debatably authoring) would have gotten better, but marginally so. You'd still fundamentally have the same types of problems of embedding one language in another.