Re: Proposal: Function.prototype.bindContext

2020-10-17 Thread #!/JoePea
I think it's a good idea that would make things more efficient. +1 *#!/*JoePea On Thu, Sep 17, 2020 at 12:57 PM Andrea Giammarchi < andrea.giammar...@gmail.com> wrote: > I'm not sure I'm following, but I'm not here to find solutions, I already > have solutions, I'm here to propose a new

Re: Are ES6 modules in browsers going to get loaded level-by-level?

2020-10-17 Thread #!/JoePea
That's neat, but it seems like the same work that a server would have to do with actual ES Module imports, right? And the "type tree" equivalent is the modules that the JS engine stores as a map from import identifier to module scope instance. It seems that in the end, the `PUSH` approach should

Re: Since JSDoc seems cerebrally dead...

2020-10-17 Thread #!/JoePea
That would be interesting indeed. Encouraging documentation is great I think. #!/JoePea On Sat, Oct 17, 2020 at 3:38 AM Michaël Rouges wrote: > > Yeah, I prefer the JSDoc solution too for the same reasons... but JSDoc is > really slow to evolve, > always several years behind the standard, a lot

Re: Why does Object.keys return an Array instead of a Set?

2020-10-17 Thread #!/JoePea
Well that makes sense! Would it be worth adding an option like `Object.keys(obj, true)` to return a set? Or perhaps `Object.keySet(obj)`? #!/JoePea On Fri, Oct 16, 2020 at 11:54 PM Jordan Harband wrote: > > Because Object.keys was standardized in 2009, 6 years before Set existed. > > On Fri, Oct

Re: Are ES6 modules in browsers going to get loaded level-by-level?

2020-10-17 Thread Randy Buchholz
I think some form of bundling will always be necessary. I use classes and took a name-spaced and typed approach to modules and classes, putting each class in its own module in a file hierarchy (namespace). This is an enterprise level LOB application with dozens of classes. Many classes are used

Re: Since JSDoc seems cerebrally dead...

2020-10-17 Thread Michaël Rouges
Yeah, I prefer the JSDoc solution too for the same reasons... but JSDoc is really slow to evolve, always several years behind the standard, a lot of solutions to describe our code are more relevant to **tricks**, generally found on the JSDoc issues, than something formal. The coverage isn't the

Re: Why does Object.keys return an Array instead of a Set?

2020-10-17 Thread Jordan Harband
Because Object.keys was standardized in 2009, 6 years before Set existed. On Fri, Oct 16, 2020 at 6:51 PM #!/JoePea wrote: > Sets are faster, even for tiny lists of four items. See the perf tests > (tested in Chrome): > > https://twitter.com/trusktr/status/1315848017535098880 > >