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

Use @available to Deprecate Constructs in Swift #3081

Open
InsertCreativityHere opened this issue Nov 6, 2024 · 0 comments
Open

Use @available to Deprecate Constructs in Swift #3081

InsertCreativityHere opened this issue Nov 6, 2024 · 0 comments

Comments

@InsertCreativityHere
Copy link
Member

It seems like the preferred way to mark something as deprecated in Swift is with:

@available(*, deprecated, message: "do not use this!")

It would be good if slice2swift could generate these on Slice definitions marked with the deprecated metadata.
(Right now slice2swift completely ignores this metadata.)

There's alot of different posts and pages talking about this, but here's one of them:
https://www.hackingwithswift.com/example-code/language/how-to-use-available-to-deprecate-old-apis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant