J. S. Choi
J. S. Choi
Although that is true, there is no way to generally determine the state of a once function without an extra property. With generators, you can at least use check `generator.next().done`....
> > you can at least use check `generator.next().done` > > That mean calling of the the generator if it's not `.done` - no big difference with calling of function....
@keithamus: If we do end up supporting argument passing to callbacks (maybe using the approach in https://github.com/tc39/proposal-function-once/issues/5#issuecomment-1179775264), then I think that it would be good to allow any function—not just...
@ljharb: The idea of my snippet above was that *any* function—not just functions created by `once`—could participate in the system by marking itself as a “I am no-op from now...
Indeed, the function can lie; the contract would be an honor system between the creators of the function and the event system. If `once` sets the `noop` property, then community...
I suppose it’s not really an “honor system” either. That is to say, the meaning of the `noop` flag would be relative to the author of the function. Nothing would...
For reference: The alternative proposal to which @ljharb refers to is [js-choi/proposal-bind-operator](https://github.com/js-choi/proposal-bind-operator). I plan to propose it at the next plenary. I have been engaging with @hax to see how...
Despite sharing the word “pipe” in their name, the pipe operator and eventual send’s remote-object pipelines are indeed orthogonal, and they can work together. ```js const fileP = target |>...
As far as I can tell, all this change requires is removing steps 1, 2, 3, 4, and 5, replacing them all with the sub-steps of step 3. tc39/ecma262 seems...
Ran into this problem while using benny-hill to run a build command, making it indicate when the build process starts and stops. Can’t run another command (like playing another sound)...