wintercg / proposal-cli-api

WinterCG proposal for standardizing CLI APIs
Other
21 stars 0 forks source link

What namespace? #2

Open CanadaHonk opened 5 months ago

CanadaHonk commented 5 months ago

Node has process for most APIs discussed here (and more), Deno has its own-named Deno. CLI/etc seems obvious but needs (a lot of?) bikeshedding. Separate discussion for whether to use process: #4

lleyton commented 4 months ago

Hm.. personally process would be ideal, but that's already ruled out. I think something like sys or system could work.

aapoalas commented 4 months ago

I've seen at least one TC39 proposal that seemed to be adding System.method functions so I wonder if that was in the cards for ECMAScript in general at some point? https://tc39.es/proposal-error-stacks/ If it was and still is then system is probably right out.

CLI looks a bit out of place compared to process, window, document, navigator but it's definitely not bad at all. runtime feels ... not right.

ljharb commented 4 months ago

No, it's not. System is not going to happen.

pi0 commented 4 months ago

sys looks like a clean, self-describing, and expandable namespace and seems to work well for python :}