Re:Anthropic acquires Bun
by aizk on Wednesday December 03, 2025 @01:23AM
(#46130852)
TS is enormous, has endless training data, and can interact with virtually anything on the Internet these days.
Also, strong typing is very very useful for AI coding context.
[ Parent
| on HN ]
Re:Anthropic acquires Bun
by justatdotin on Wednesday December 03, 2025 @02:37AM
(#46131306)
> strong typing is very very useful for AI coding context
what makes you think so?
I believe strong typing is very very useful for human coding,
I'm not convinced its so 'very very' for agents.
When I've use agents with TS, failing tests due to typing seems to help the agent get to the correct solution. Maybe it's not required though.
Re:Anthropic acquires Bun
by tubthumper8 on Wednesday December 03, 2025 @03:45AM
(#46131919)
What do you mean by "failing tests", are you talking about runtime code? TypeScript erases all types at compile so these wouldn't affect tests. Unless you meant "compile errors" instead.
I've noticed LLMs just slap on "as any" to solve compile errors in TypeScript code, maybe this is common in the training data. I frequently have to call this out in code review, in many cases it wasn't even a necessary assertion, but it's now turned a variable into "any" which can cause downstream problems or future problems