Actually I'm realizing the logical extreme of this is to invent a new programming language for #AI codegen.
Except that language doesn't actually have to *exist*, it just needs to be transpiled as a post-processing step in the workflow to the real language you want.
I notice that #AI agents are generally pretty bad about writing imports correctly. They either forget to import something or import too much and leave extras.
I suspect this is from the fact that you need to "predeclare" your imports long before you're actually using them.
Imagine you're writing a file, and you know what you want, but now you have to write out all your imports in one-shot before actually writing the code. You're definitely gonna miss some stuff.
AI seems pretty good at fixing imports it missed, but tends to leave unused imports in my experience.