3 ms·
> Why do we need special configuration languages? Why not just use existing languages? Sure, or you could turn around and ask: Why do we need languages at all
by ncallaway 3y ago
> Why do we need special configuration languages? Why not just use existing languages?
Sure, or you could turn around and ask:
Why do we need languages at all? Surely we can express everything with assembly?
Or, shouldn’t one language work for all cases? Why not just use C everywhere?
And the answer becomes obvious: some languages are better at certain tasks than others! Then, a “configuration language” is just going to be a programming language that is best suited to generating configuration.
The same way that C or Rust have different use cases than C# and Java.
- civilized 3y agoOkay, then in your terms my question would be "why is the best language for configuration not an existing language?"
- ncallaway 3y agoI think the fact that most configuration languages tend towards being declarative, while many popular languages are imperative would tend towards an answer. But, like, the answer is because "people had an itch that they couldn't scratch".