Code also requires a runtime or needs to be compiled to something static, like YAML or JSON, in order to be consumed. That latter option is essentially how things are today given that templating tools the generate configurations are plentiful.
I think that this requirement makes broad adoption a lot more difficult for code-based configuration.