お、まさにこういうコンセプトの言語探してたんだよね。
物理次元と単位を第一級オブジェクトとして扱う静的型付言語「Numbat」
https://github.com/sharkdp/numbat
まぁ実用的には、PythonのPintとかJuliaのPhysical.jlとかF#のUnits of Measureを使うことになるんだけど、言語単位で物理次元型安全であって欲しいという気持ち。
お、まさにこういうコンセプトの言語探してたんだよね。
物理次元と単位を第一級オブジェクトとして扱う静的型付言語「Numbat」
https://github.com/sharkdp/numbat
まぁ実用的には、PythonのPintとかJuliaのPhysical.jlとかF#のUnits of Measureを使うことになるんだけど、言語単位で物理次元型安全であって欲しいという気持ち。
If you have a fediverse account, you can quote this note from your own instance. Search https://fedibird.com/users/haborite/statuses/114505675297086272 on your instance and quote it. (Note that quoting is not supported in Mastodon.)