proposal-object-freeze-seal-syntax
A JavaScript TC39 proposal for Object.freeze & Object.seal syntax (by keithamus)
proposal-bind-operator
This-Binding Syntax for ECMAScript (by tc39)
proposal-object-freeze-seal-syntax | proposal-bind-operator | |
---|---|---|
2 | 8 | |
59 | 1,738 | |
- | 0.2% | |
0.0 | 0.0 | |
about 6 years ago | over 6 years ago | |
- | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
proposal-object-freeze-seal-syntax
Posts with mentions or reviews of proposal-object-freeze-seal-syntax.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-07.
-
10+ Interesting ECMAScript Proposals
Object freeze and seal syntax: {# ... #} or {| ... |}
-
Can we get the exact same experience with functions but without use of any classes?
There has been a proposal for frozen/sealed syntax for object literals which would make this a lot more concise in that context, but this is the same syntax being proposed for the record/tuple proposal, so I doubt that's going anywhere anytime soon.
proposal-bind-operator
Posts with mentions or reviews of proposal-bind-operator.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-20.
-
Pipe Operator (|>) For JavaScript
There was also a different proposal that allows objects to be extended: https://github.com/tc39/proposal-bind-operator
Personally, I don't use classes much, but sometimes I think free functions a little bit hard to find, so I tend to experiment with the following pattern.
interface User { … }
const User = {
- Why Would Anyone Need JavaScript Generator Functions?
-
JavaScript Evolutsiyasi Qisqa Satrlarda!
Yangi bind operatori Function.prototype.bind ni yanada elegant tarzda ishlatish imkonini beruvchi yangi sintaksis
-
JavaScript tutorials
In modern JS, you can export each function directly without putting them in an object. It also allows you to call a function with a specific “this” value, function.bind(object)(args). As a matter of fact, there’s a syntax proposal proposal and to do exactly this, object::function(args). This proposal could make what you describe pretty popular.
-
Can't wrap my head around a thing about modules
Hey, not yet ;)
-
10+ Interesting ECMAScript Proposals
This binding syntax (::)
-
I've used the pipe() function 2,560 times and I can tell you it's good!
You'd need 4 periods.
-
[AskJS] Sensible Prototype Extensions?
I don't think you want realms so much as protocols or extensions, the latter assimilating the beloved bind operator.
What are some alternatives?
When comparing proposal-object-freeze-seal-syntax and proposal-bind-operator you can also consider the following projects:
proposal-partial-application - Proposal to add partial application to ECMAScript
proposal-generator-arrow-functions - ECMAScript proposal: Generator Arrow Functions