Jafar Husain
Jafar Husain
@annevk concerns about the ability to call preventDefault() when using Promise returning methods are valid. Mutation use cases could be addressed with a do method which allows side effects to...
@benlesh Using map would be less ergonomic for this use case, because developers would be obligated to also return the function argument. ~~~js button.on(“click”).map(e => { e.preventDefaut(): return e; }).first()...
There are two principled approaches here: 1. We should create a new type every time a subset of an existing type's semantics are required for a use case. 2. "It...
This was laziness and time constraints, pure and simple. A pull request would be very valuable as I'm sure others have hit the same issue.
That's fine with me. @mattpodwysocki?
@mattpodwysocki can you weigh in? I'd like to just make this Apache 2.0 with copyright to you and me. Want to make sure you're okay with it.
I’ll add an Apache 2 license soon and put the issue to rest.
Want to call out that this would also make it easier to implement programs which transform Documents. For example federation might cause fields to be removed from a selection set...
I agree this is a worthwhile addition to the rules.
As for the question of why we don't just do this with yield, the committee has already decided that the await syntax is desirable enough to pursue because of the...