typed configuration language
#technique
ただのconfiguration languageだと基本的な値に対する型しかなく、構造の型(Dict, Optional, Tupleとか)の設定ができないから、(カスタマイズしたクラスに突っ込む値とかで)間違ってても実行時エラーでしか気づけないよねーという話
あわよくば、vscodeとかでannotation/complementしてくれると最高なのでは、みたいな
参考リンク
https://kevincox.ca/2022/01/19/typed-config-languages/
https://www.reddit.com/r/Python/comments/113gfr9/is_there_any_interest_in_a_typed_configuration/
既にいろいろ開発されている
https://cuelang.org/
https://dhall-lang.org/
https://jsonnet.org/
https://nickel-lang.org/
nickel良さそうだけどpypiにはパーサーまだなかった
cueはあるけど、パーサーというよりverificationだけっぽい?
nickel試してみたいけど、今のところpythonでやるんだったらtomlやyamlで読み込んだ後、dataclassで検証するのが丸いのかも...