> Let’s discuss something else. Actually there is an easy fix: make all 
> functions accept optionals. I think this is a really bad idea
Indeed.
I don't think there is a good motivation to change the status quo:
You can't "sugar away" everything; sometimes, you just have to write a line of 
code that does what you want.
As you can "if let" convert as many optionals as you like in a single 
statement, it really doesn't hurt that much.

The precondition stuff looks exactly like guard inside the function to me… 
what's the benefit of that?
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to