In the Scala world, HOCON addresses a lot of these (except programmability, which I think is probably a bad idea).
${service}.${env}.example.comThanks for pointing me to that - I'm working in Scala on server-side and JS on browser-side for a couple of years now, and sharing config would be nice. Still need object merging and value concatenation, which hocon-js doesn't support, but I'll keep an eye on it!