Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
o11c
8mo ago
0 comments
Save
Share
Tree-shaking really only works for languages that are designed to be tree-shakable, which no web language is.
0 comments
3 comments · 1 top-level
top
newest
oldest
typpilol
8mo ago
· 2 in thread
Type/JavaScript are extremely tree shakable if using esm.. what makes you think it's not?
o11c
OP
8mo ago
Only at the most crude level. Ever heard of "virtual functions"?
typpilol
8mo ago
Runtime polymorphism is great but I wouldn't consider that to be tree shaking.
j
/
k
navigate · click thread line to collapse