JS/TS について言えば const があの体たらくなので readonly いらなくねというのは割と同意できるなあ
そこまで気を遣うなら JS 系列をそもそも投げ捨てろ……といってもやはり現実的な範囲でそこを気遣える言語がやっぱり少ないよなあ
いわゆる不変なレコード的な型が書きやすくはなってきているんだよな。そういえば TC39 にタプル/レコードの proposal があるんだっけ
あれが入ったらまた世界が変わりそう
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.