Skip to content
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

Remove some undocumented, deprecated functions which are slated for removal. #1176

Merged
merged 1 commit into from
Mar 25, 2013

Conversation

jmdavis
Copy link
Member

@jmdavis jmdavis commented Feb 26, 2013

These have been deprecated for a while, but there was some balking
(primarily from Andrei IIRC) at actually removing them when they were
slated for removal, so they were instead made undocumented and slated
for removal after yet another 6 months or so. So, now that that time has
passed, here's another attempt to actually remove them.

@@ -1149,74 +1106,6 @@ unittest
}


//Explicitly undocumented. Do not use. To be removed in March 2013.
deprecated S capwords(S)(S s) if (isSomeString!S)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come this one is removed? Was it just not used by anyone? Asking because there's no alternative mentioned.

(I don't think I've ever used it though so I won't miss it).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC, when we fixed a lot of the names in std.string, we decided that the function was overly specific and didn't provide enough value, but regardless of the reasoning, it's been deprecated for some time and outright undocumented for several months of that. So, if we wanted it, we'd pretty much need to reintroduce it anyway (and with a properly capitalized name).

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okie, thanks.

@ghost
Copy link

ghost commented Feb 26, 2013

LGTM.

@alexrp
Copy link
Member

alexrp commented Mar 7, 2013

Fails Win32.

…emoval.

These have been deprecated for a while, but there was some balking
(primarily from Andrei IIRC) at actually removing them when they were
slated for removal, so they were instead made undocumented and slated
for removal after yet another 6 months or so. So, now that that time has
passed, here's another attempt to actually remove them.
@jmdavis
Copy link
Member Author

jmdavis commented Mar 7, 2013

Updated. Hopefully, it'll pass this time.

deprecated("Please use std.ascii.digits instead.") immutable digits = "0123456789";
deprecated("Please use std.ascii.octalDigits instead.") immutable char[8] octdigits = "01234567";
deprecated("Please use std.ascii.lowercase instead.") immutable char[26] lowercase = "abcdefghijklmnopqrstuvwxyz";
deprecated("Please use std.ascii.letters instead.") immutable char[52] letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interestingly this one was just plain wrong as it contains 26 letters not 52.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. But what was wrong was the initializer itself, it should be like the current one in std.ascii:

immutable letters        = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ~
                           "abcdefghijklmnopqrstuvwxyz";

I'd kind of wish the compiler complained about the old initializer, especially since it's immutable.

@ghost
Copy link

ghost commented Mar 8, 2013

Why does Github say Pass: 9, In Progress: 1, when nothing is in progress? The pull has been fully green in the Old Results section.

@ghost
Copy link

ghost commented Mar 8, 2013

Edit: Could it be that the tester decided to test all pulls from start again due to a new merge to master? Because in that case it should really reset all statuses so they write "pending" or something, instead of leaving it to this old status.

jmdavis added a commit that referenced this pull request Mar 25, 2013
Remove some undocumented, deprecated functions which are slated for removal.
@jmdavis jmdavis merged commit e099404 into dlang:master Mar 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants