I've suspected gleam is really good candidate for generative coding for a while. Reading it and writing it seems to require a pretty small window of attention.
and exhaustive pattern matching + result types should help as well pushing issues out of runtime.