ice icon indicating copy to clipboard operation
ice copied to clipboard

Use `@available` to Deprecate Constructs in Swift

Open InsertCreativityHere opened this issue 1 year ago • 0 comments

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

InsertCreativityHere avatar Nov 06 '24 16:11 InsertCreativityHere