Comment

Comment by josteink

From a cursory glance, the replacement (Trusted Types), just seems like a very cumbersome runtime type-safety engine kind of thing, shoehorned into a JS/DOM context.

Is that a correct understanding?

If so... Why use this cumbersome API instead of just relying on existing and well-implemented concepts as already present in Flow or Typescript?

That way you could have Flow or Typescript also compile to whatever form this required to have.

Or am I missing some key bits here?

parent josteink 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton