> On Jun 10, 2016, at 3:22 PM, Austin Zheng via swift-evolution 
> <[email protected]> wrote:
> 
> So, instead of:
> 
> @available(*, unavailable, renamed:"someNewAPI()")
> public func someOldAPI() -> Int { fatalError() }
> 
> You can just have:
> 
> @available(*, unavailable, renamed:"someNewAPI()")
> public func someOldAPI() -> Int
> 
> The intent is, in my opinion, clearer for the latter and it feels less kludgy.

You ask, we answer. I'd much prefer spelling out { fatalError("unavailable 
API") }. 
It makes the code clearer to read, to maintain, it produces debug and runtime 
errors. etc. I think 
this is an example where concision is overrated.

-- E


_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to