-
Notifications
You must be signed in to change notification settings - Fork 340
stabilize pin #403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stabilize pin #403
Conversation
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
My personal experience is the opposite - I never found From a pedagogical standpoint, I worry that having While I don't have a particularly strong opinion and would rather do nothing than stabilize this, I'd like more convincing motivation first. To be concrete, something like the following needs to happen for me to 👍 this PR:
Any opinions? It would very helpful to hear more than 2 opinions on this. |
I would prefer to not expose API that might couple people to async-std without need. This might lead to a situation where people import |
Pedagogy
I think this touches on a more general issue of re-exports. We may need to be more clear on what we're re-exporting, and what we're defining ourselves. Similarly we may need to clarify what's new in async-std, and what's merely an adaptation of std APIs. I'm not worried that we're introducing too much API surface if it's a direct re-export of std. In fact, I think we should err on re-exporting rather than not in case of doubt. Within reason of course. Acceptance criteria
We haven't been really designing APIs this way so far, and I don't think we should start now. User testing in general is useful, but this seems like something so minor that the effort is probably not worth it. For example: nobody was asking for Design directionReflecting a bit further on where I'm coming from: I'm approaching this as: "If it's part of std, why wouldn't we add this?". I feel others might be approaching this more as: "Why would we add this?". I think being liberal with our API additions has worked out well for us so far. Very few of the APIs in This different from APIs that we're designing, and adding to async-std. Each new addition has to be thoroughly motivated, and sometimes take weeks or months to design. I think the balance beyond "liberal std parity, conservative novel APIs" is the right path, and adding |
So the reason why I'm worried about the
I feel hesitant about There is another problem here, which is that I'm just saying that
My approach has been to accept almost anything behind
The key difference for me is that
|
I think this is a pretty compelling argument to not do this quite yet. Agreed, let's hold off for now. |
Removes the
"unstable"
marker fromasync_std::pin
. Even in the absence of #258, there's great value in being able to import everything required for implementingFuture
fromasync_std
. This may not seem like a big deal at first glance, but it removes a cognitive speed bump when implementing futures, which makes async-std more intuitive to use.Thanks!
Proposed
Current