Skip to content

Conversation

@jmschonfeld
Copy link
Contributor

This property is used as an implementation detail from within swift-corelibs-foundation and the new swift-foundation repo. Since it is deprecated, it produces numerous warnings when building these projects despite this being a valid use case within Foundation. Rather than avoid performance improvements to "silence" the warning (by not using this property) or dealing with large amounts of warnings, we should just un-deprecate this property since it is already underscored indicating it is not for stable/public use. We can still find a better public API for this in the future that we can migrate Foundation to when it is ready.

@jmschonfeld jmschonfeld requested a review from a team as a code owner January 4, 2024 23:01
@jmschonfeld
Copy link
Contributor Author

@swift-ci please smoke test

@lorentey
Copy link
Member

lorentey commented Jan 5, 2024

It would probably be a good idea to fix the implementation; at the very least, it should handle the small string case.

@parkera
Copy link
Contributor

parkera commented Jan 5, 2024

Given this is already in use across Foundation on all platforms, I'm ok with splitting up this no-op change (to make building swift-foundation not emit a few hundred warnings) from fixing the behavior.

@jmschonfeld jmschonfeld merged commit b46adbb into swiftlang:main Jan 8, 2024
@jmschonfeld jmschonfeld deleted the undeprecate-iscontiguousascii branch January 8, 2024 23:44
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