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
std.array: Allow joining constant arrays #1865
Conversation
I wish we had an |
I'm always a bit concerned with liberal use of |
As far as I can tell, the change is fine because nothing actually ever gets casted away. This merely relaxes the constraints, but the function still operates on the actual types. The types stored are still the raw This means that while our constraints will now accept const ranges, nothing guarantees the implementation will actually compile correctly. So I don't think this could actually lead to undefined behavior (which is good), but can lead to compile errors (which is bad), but accepts code that was (arguably) valid, but previously rejected (which is bad). |
I guess instead of |
I currently have a pull request for CompatibleUnqual, which does exactly
|
What's the pull request number? What's its status, is it merged? Does it make this one obsolete? |
It's here: #1881 It's not merged, and unknown whether or not it will be. It doesn't make your change obsolete. It would just change your I think we should still merge your change in the meantime. LGTM |
Auto-merge toggled on |
std.array: Allow joining constant arrays
Fixes this: