I can imagine some would argue that having it in an imperative language means you can do if/else type things, but we hack the same thing into Terraform by abusing `count`. Everybody does it, certain situations make it unavoidable.
The only argument left against it in my mind, is that using an imperative language means it allows you to more easily employ anti-patterns to the declarative approach (either accidentally or deliberately). To that I'd have to say; ¯\_(ツ)_/¯ just don't do that?
Comments
I'm swayed.
I can imagine some would argue that having it in an imperative language means you can do if/else type things, but we hack the same thing into Terraform by abusing `count`. Everybody does it, certain situations make it unavoidable.
The only argument left against it in my mind, is that using an imperative language means it allows you to more easily employ anti-patterns to the declarative approach (either accidentally or deliberately). To that I'd have to say; ¯\_(ツ)_/¯ just don't do that?