-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
deprecate WString and wstring #16975
Conversation
72f7332
to
723a4ee
Compare
if sizeof(Cwchar_t) == 2 | ||
@deprecate_binding WString UTF16String | ||
@deprecate_binding wstring utf16 | ||
utf16(s::Cwstring) = utf16(convert(Ptr{Cwchar_t}, s)) |
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.
tab again
more consequentially, these deprecations are platform-dependent which defeats the purpose of them having a separate name
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.
I'm not sure how to fix that since this was an alias anyway ¯\_(ツ)_/¯
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.
we should probably recommend something that involves if is_windows() a; else b; end
(or equivalent with sizeof(Cwchar_t)
if that's not going to be deprecated)
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.
Right, but the binding deprecation isn't going to be possible to handle that way anyhow.
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.
I'm going to leave this since the next step is to delete UTF16 and UTF32 anyway.
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.
Didn't see this since it was collapsed, but what's the replacement going to be here? Wherever that moves to, this deprecation should direct to something correct.
2c7372f
to
cb23547
Compare
appveyor failures are real here, just so your merge finger doesn't get too itchy |
cb23547
to
89cdf63
Compare
89cdf63
to
91e4340
Compare
YESSS! I finally got this bugger to pass on Windows. |
Failure is a timeout. The other Windows run passed. Tempted to merge... |
The deprecation here is pretty flawed and is going to lead people to write code that doesn't behave cross platform the way they thought it might from using these aliases. |
Compat also needs fixing for this. |
Once we delete UTF(16|32)String, these deprecations have to be deleted. I'm not sure what they can be replaced with unless we keep the entirety of those types around in base/deprecated.jl, which seems insane. |
It should redirect to something that does the right thing, whether or not that's in base. If that doesn't exist yet, then we're not ready to remove the types. |
No description provided.