Seems like there's a lot of pitfalls there, but that comes with the territory of writing laws in general.
Seems like a concept worth exploring.
I am pretty sure there are several more but that's the one I can recall. It has been discussed here periodically https://news.ycombinator.com/from?site=github.com/catalalang (and https://news.ycombinator.com/from?site=catala-lang.org ) with the 2023 thread being the beefiest https://news.ycombinator.com/item?id=37546874
Seems like there's a lot of pitfalls there, but that comes with the territory of writing laws in general.
Seems like a concept worth exploring.