4 ms·
> JS (...) is designed to support hot reloading no it's not lol. hmr is an outrageous hack of the language. however, the fact JS can accommodate such shenaniga
by b_e_n_t_o_n 1y ago
> JS (...) is designed to support hot reloading
no it's not lol. hmr is an outrageous hack of the language. however, the fact JS can accommodate such shenanigans is really what you mean.
sorry I don't mean to be a pedantic ass. i just think it's fascinating how languages that are "poorly" designed can end up being so damn useful in the future. i think that says something about design.
- zarzavat 1y agoESM has Hot Module Reloading. When you import a symbol it gives you a handle to that symbol rather than a plain reference, so that if the module changes the symbol will too.
- b_e_n_t_o_n 1y agoIt's not a feature of the language was my point, not that it's not possible.