[swift-evolution] Proposal: Add Flags to Disable [Optional] Conversions
devteam.codafi at gmail.com
Wed Dec 9 13:20:04 CST 2015
Considering what I do with Swift, I recently posted a pull request that adds a flag to the frontend that would disable all implicit optional conversions by making them errors. From my perspective, implicit conversions are convenient, but they allow certain strange behaviors (https://github.com/typelift/Swiftz/blob/master/SwiftzTests/EitherSpec.swift#L72 <https://github.com/typelift/Swiftz/blob/master/SwiftzTests/EitherSpec.swift#L72>) to show up. For the community, the question is threefold:
1) Would anything break if this were applied?
2) Would it be appropriate to expand the flag by allowing all implicit conversions to be disabled?
3) If you remain unconvinced it should be an error, would implicit conversion warnings be more appropriate?
~Robert Widmann (CodaFi)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution