i would have written it like this < https://gist.github.com/kelvin13/ba42b620f80ee94fbb0d0841056aac97>
On Wed, Aug 2, 2017 at 12:34 PM, Gor Gyolchanyan < [email protected]> wrote: > > On Aug 2, 2017, at 7:31 PM, Tino Heth <[email protected]> wrote: > > > Consider these two alternative ways of writing the same code: > https://gist.github.com/technogen-gg/17b6d5e13c13080850dceda28cfe1caa > > > Great example — the first is better. > But not because of extensions: > // MARK: - String Compatibility > > > You missed the entire point. > Here, I fixed it for you: https://gist.github.com/technogen-gg/ > 17b6d5e13c13080850dceda28cfe1caa > >
_______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
