-
Notifications
You must be signed in to change notification settings - Fork 13k
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
We need an core::at_str library #3604
Comments
So, I know that @pcwalton is opposed because it makes the signatures complex (which it does), but making use of static typeclass methods and the builder interface stuff, it is totally plausible to have all methods on iterables generate either Basically
And the
And the impl for
There are undoubtedly a lot of bugs standing between us and having this work, as well as (at least) one other enhancement that I think would be important. That enhancement is that we probably need some kind of way to help the type inferencer when the required type is underconstrained. Or else we just add type hints. I'm thinking of a situation like this:
Here, there is no way for the type inferencer to know what result type
then the type inferencer would know what to do. The downside of this scheme is that... well... it IS complex. But it'd be nice not to need to define higher-order things like Note: Here I've used the "receiver-less" fn notation that we intend to move to, rather than the keyword |
Or library functions could generally build |
Which is #3450 |
I don't think this will break existing code, so clearing the milestone and nominating for milestone 3, feature-complete. I think we need some discussion about the str situation. |
accepted for feature complete by analogy with #3450 |
wontfix, |
intrinsics: just panic when they get used incorrectly This is already what we do most of the time, so do it consistently.
There's no way to convert between a
~str
and a@str
. We need a library that provides this and other functionality.The text was updated successfully, but these errors were encountered: