News for hackers. Stuff that matters.
Re:Rich Harris joins Vercel to work on Svelte full time by Aeolun on Thursday November 11, 2021 @08:04PM (#29195220)
> I don't know how you could implement such a thing (with good ergonomics) without a template language.

Parse Javascript? I don’t see how it would be any different, except you have more constructs to work through.

Re:Rich Harris joins Vercel to work on Svelte full time by tshaddox on Thursday November 11, 2021 @08:24PM (#29195343)
The "more constructs to work through" is precisely the problem. Without restricting JavaScript to some subset, you're not going to be able to statically determine the behavior of any given program.