▲ | herrington_d 4 hours ago | |||||||||||||
The logic above can support exactly the opposite conclusion: LLM can do dynamic typed language better since it does not need to solve type errors and save several context tokens. Practically, it was reported that LLM-backed coding agents just worked around type errors by using `any` in a gradually typed language like TypeScript. I also personally observed such usage multiple times. I also tried using LLM agents with stronger languages like Rust. When complex type errors occured, the agents struggled to fix them and eventually just used `todo!()` The experience above can be caused by insufficient training data. But it illustrates the importance of eval instead of ideological speculation. | ||||||||||||||
▲ | mithras 3 hours ago | parent | next [-] | |||||||||||||
In my experience you can get around it by having a linter rule disallowing it and using a local claude file instructing it to fix the linting issues every time it does something. | ||||||||||||||
| ||||||||||||||
▲ | MattGaiser 3 hours ago | parent | prev [-] | |||||||||||||
Or just bad training data. I've seen "any" casually used everywhere. |