| ▲ | g947o 4 hours ago | ||||||||||||||||||||||||||||
I think Rust is great for agents, for a reason that is rarely mentioned: unit tests are in the same file. This means that agents just "know" they should update the tests along with the source. With other languages, whether it's TypeScript/Go/Python, even if you explicitly ask agents to write/run tests, after a while agents just forget to do that, unless they cause build failures. You have to constantly remind them to do that as the session goes. Never happens with Rust in my experience. | |||||||||||||||||||||||||||||
| ▲ | jimbokun 26 minutes ago | parent | next [-] | ||||||||||||||||||||||||||||
Even LLMs know they should write tests but hate doing it. | |||||||||||||||||||||||||||||
| ▲ | 0x3f 4 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||
You can add a callback to e.g. Claude to guarantee it does a cargo check and test. | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| ▲ | wakawaka28 2 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||
Unit tests in the same file wastes context and makes the whole thing hard to navigate for humans and machines alike. | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||