-
-
Notifications
You must be signed in to change notification settings - Fork 747
Deprecate Obsolete Encoding Functions in std.utf #5083
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
Conversation
| reserve(size); | ||
| foreach (c; ubuf) | ||
| buf.ptr[pos++] = c; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to CodeCov this isn't used/covered :/
wilzbach
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks quite reasonable to me. However as this is a name deprecation, maybe we should have a second LGTM?
2f53d2c to
0a6c31b
Compare
DmitryOlshansky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM let's kill the old junk
|
Auto-merge toggled on |
|
This introduced a regression: https://issues.dlang.org/show_bug.cgi?id=17227 |
I am not sure why you consider deprecation messages as a regression. In particular if
|
@wilzbach Why haven't they been fixed for the Windows code in Phobos? I thought fixing all usage of deprecated symbols in Phobos was a hard prerequisite to deprecating anything. |
AFAICT this has never been required - otherwise the testsuite would run with |
|
Yeah but it doesn't make sense otherwise, does it? Seems antithetical to deprecate something for everyone else but not ourselves. |
|
Any reason not to enable |
Let's have a look: #5546 |
These functions are exactly the same as
std.utf.encode. And they are quite old, originating in 2007 according to git blame. So they probably existed beforestd.utf.encode.They also return a slice over a static array, which is a Bad IdeaTM.
Doing a deprecation cycle because they are publicly accessible and were used in other parts of Phobos.