Comment by smt88

Comment by smt88 3 days ago

3 replies

TypeScript is one of the few languages (Rust being another) that should be a target of LLM-generated code, just because the static analysis is so strict you'd actually catch a lot of bugs before runtime.

maleldil 3 days ago

(Strict) Typed Python isn't that bad either, and LLMs seem to be quite good at generating that, given how popular Python is.

Unfortunately, it tends to generate outdated types (e.g. `List` instead of `list`, `Optional[T]` instead of `T | None`, import `Iterable` from `typing` instead of `collections.abc`), so you always need to tell it to use the right one.