Proposal-new-initialize Alternatives
Similar projects and alternatives to proposal-new-initialize
-
proposal-function-implementation-hiding
JavaScript language proposal: function implementation hiding
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
es-membrane
An ECMAScript implementation of a Membrane, allowing users to dynamically hide, override, or extend objects in JavaScript with controlled effects on the original objects.
proposal-new-initialize reviews and mentions
-
JavaScript private class fields considered harmful
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
Sponsored