You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hiding the str and char behind a type doesn't really help because the type isn't opaque. People are presumably coming to do low-level stuff with the &str or char so we can't get rid of those constants. Maybe if every API had been designed from the start to take in a Separator this would have made more sense, but as it stands I actually think having a MAIN_SEP_STR constant is perfectly reasonable. At the very least, adding this constant doesn't block any future work (it would just get deprecated/forgotten).
Activity
kamellperry commentedon Aug 25, 2022
What's the status on this?
SUPERCILEX commentedon Aug 26, 2022
Probs still waiting on using
AsRef.SUPERCILEX commentedon Oct 16, 2022
@yaahc I gave your idea a go, but I don't think it makes sense:
Hiding the str and char behind a type doesn't really help because the type isn't opaque. People are presumably coming to do low-level stuff with the &str or char so we can't get rid of those constants. Maybe if every API had been designed from the start to take in a
Separatorthis would have made more sense, but as it stands I actually think having aMAIN_SEP_STRconstant is perfectly reasonable. At the very least, adding this constant doesn't block any future work (it would just get deprecated/forgotten).On that note, how do I start an FCP?
Rollup merge of rust-lang#103104 - SUPERCILEX:sep-ref, r=dtolnay
Rollup merge of rust-lang#103104 - SUPERCILEX:sep-ref, r=dtolnay
klensy commentedon Jan 8, 2023
In topic: path separator named
staticwhen in actually const, but in this example it have possibly no difference.Rollup merge of #103104 - SUPERCILEX:sep-ref, r=dtolnay