4 ms·
It sounds like what is needed is an `optimising compiler' for the entire front end that would spot patterns like those you mention and rewrite them into somethi
by parenthesis 6y ago
It sounds like what is needed is an `optimising compiler' for the entire front end that would spot patterns like those you mention and rewrite them into something better, and that would tree-shake out unused stuff.
Does anything like that exist?
- read_if_gay_ 6y agoThat seems like it's going to work in very specific situations only and/or be extremely hard to implement.
- tjpnz 6y agoThat strikes me as a heavy handed option given the prevalence of linters and performance tools which can already detect some of these issues.
- joquarky 6y agoI'm curious if Svelte is headed in this direction.