Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

- TS also lets anyone do whatever they want so not a great thing to support, I have always said TS would be better if people couldn't configure it without a PR to TS itself

- we have the chance to define a new and better API, we should do it - you are already adopting something different

- I agree, but its not a selling point, these things are probably in containers already and my OS should be doing most of the work

- window: just no, call it global if you must. perpetuating ideas like this isn't good for anyone but the lazy.

- I think the cmd aspect of shipping a whole binary is cool for sure, but lets not conflate this as a "compiled language" its not. you are shipping a runtime and a scripting language together.



You go out and fix all the library code that uses window then.

The web has been paving the cow paths for good reason.

There are hills worth dying on, what the common namespace is called isn't one of them.


relatively speaking the windows vs. global should be a non issue. I believe that every js runtime except for IE supports globalThis such that `globalThis.window === window` in the browser and `globalThis.global === global` in node.

Deno's difference from node is the choice to implement web API instead of nodejs stdlib API

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: