最近はScalaとかSwiftとかの「割とモダンな言語」が基底型に型消去するみたいなコンパイルテクでゼロオーバーヘッドのラッパー定義できる言語が増えてる気がしているので、別にRustだけではないと思う。
Rustが気軽に定義できるって話なら、そりゃそうだと思うけれど
https://hackers.pub/ap/notes/01990ddf-6e44-769a-995c-6fac70d06920
確かにHaskellにもあるか。使わなさすぎて忘れてた
If you have a fediverse account, you can quote this note from your own instance. Search https://misskey.niri.la/notes/ac72fvhrcg on your instance and quote it. (Note that quoting is not supported in Mastodon.)