would this mean that LLM would be able to generate code easier for strongly typed languages?
I just tell LLM to create and run unit tests after applying changes.
When tests fail, LLM can use the error message to fix code. Be it compilation error of code or logic error in unit tests.