[swift-evolution] Adding Result to the Standard Library

Guillaume Lessard glessard at tffenterprises.com
Wed Nov 15 15:21:14 CST 2017


> On Nov 14, 2017, at 19:57, Hooman Mehr <hooman at mac.com> wrote:
> 
> You can support all styles with enum as well.

My point is precisely that perhaps we should not.

While the switch-over-result style is neither better nor worse than the try-catch style, having both in one body of code isn’t  pleasant. 

We can privilege the try-catch style and still get the benefits of Result.

Guillaume Lessard


More information about the swift-evolution mailing list