SMRTR ProgrammingDec 28, 2025Lobsters

I was wrong about Typescript, part 1

SMRTR summary

A developer who previously worked with Rust found TypeScript problematic due to fundamental weaknesses that undermine its type safety promises. The language lacks concrete error return types, forcing developers to guess when functions might throw exceptions, while the "any" type allows bypassing type checking entirely by casting incompatible types. Unlike Rust's compiler-enforced guarantees, TypeScript's structural type system exists only at compile time and cannot verify that functions actually implement their declared signatures, making it feel more like enhanced documentation than true type safety.

SMRTR provides this summary for quick context. The original article belongs to Lobsters.

Read the original article
SMRTR Programming

Get the next batch of curated stories in your inbox.

This archive is built from SMRTR newsletter stories. Subscribe for hand-picked stories without the extra noise.

Related Stories

Browse Programming
ProgrammingAug 23, 2026

Rust Glancer

Rust-analyzer's memory bloat stems from treating all 6,666 dependencies equally — a tiered, IntelliJ-style backend could fix that.