transfermyti.me
proposal-bind-operator
transfermyti.me | proposal-bind-operator | |
---|---|---|
1 | 8 | |
59 | 1,738 | |
- | 0.2% | |
7.6 | 0.0 | |
4 months ago | over 6 years ago | |
TypeScript | ||
MIT License | - |
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.
transfermyti.me
-
Why Would Anyone Need JavaScript Generator Functions?
I'm 1000% with you on this. If you're dealing with a bunch of operations that need to happen in a very specific order, there's really nothing else out there that comes close. I'm able to look at saga code I've written months (or years!) ago and figure out what's going on in a short amount of time without having to jump around.
I used sagas pretty heavily in an app I built to transfer data between Clockify and Toggl, which required that data be fetched/loaded into state in a very specific order[1]. You can't be sagas for clarity.
[1]: https://github.com/mikerourke/transfermyti.me/blob/main/src/...
proposal-bind-operator
-
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?
Bumble - A small JavaScript game framwork
proposal-generator-arrow-functions - ECMAScript proposal: Generator Arrow Functions
foal-ts-monorepo - Boilerplate for building a volatility-based system using Foal for the server and Create React App for the client
proposal-relative-indexing-method - A TC39 proposal to add an .at() method to all the basic indexable classes (Array, String, TypedArray)
async-generator - Async generator module.
proposal-observable - Observables for ECMAScript
Bumble-Asteroids - An asteroids like game built with the Bumble framework and using Entity Component System
proposal-pipeline-operator - A proposal for adding a useful pipe operator to JavaScript.
bitstream - Utilities for packing/unpacking fields in a bitstream
proposal-temporal - Provides standard objects and functions for working with dates and times.
skytransfer - Free, open-source, decentralized and encrypted filesharing.
proposal-as-patterns - `as` destructuring patterns