proposal-new-initialize

Early draft proposal to support initializing given objects with fields and private methods (by littledan)

Proposal-new-initialize Alternatives

Similar projects and alternatives to proposal-new-initialize

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better proposal-new-initialize alternative or higher similarity.

proposal-new-initialize reviews and mentions

Posts with mentions or reviews of proposal-new-initialize. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-28.
  • JavaScript private class fields considered harmful
    6 projects | news.ycombinator.com | 28 Apr 2023
    Proxies exist pretty much for one purpose and one purpose only: to implement membranes, like described in <https://github.com/ajvincent/es-membrane/>, where you build on demand a whole parallel universe of proxies that stand in for objects existing somewhere else, and have wrapper functions convert between those proxies and real objects. Any other use is incidental and unsupported.

    Admittedly, not many people know this, so those who are not deeply familiar with TC39 proceedings commonly think of proxies as just a way to hook into arbitrary behaviours of a single object, like property accesses, then are treated to a bitter surprise when proxies don’t work like what they thought or wanted.

    Still, the opening example is simply a misuse of Proxy, so it’s rather unconvincing.

    That said, with something like <https://github.com/littledan/proposal-new-initialize#another...>, something resembling the popular conception of Proxy might actually be made to work…

Stats

Basic proposal-new-initialize repo stats
1
15
10.0
about 5 years ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com