> On 20 juil. 2016, at 14:21, Xiaodi Wu <xiaodi...@gmail.com> wrote: > > Doesn't your second argument undermine your first? If it's a trivial solution > and one rarely ever considers empty strings when invoking `hasPrefix`, then > returning the technically correct result must be a trivial departure in > behavior.
I specifically used an example where the trivial solution (y=0 instead of y=exp(x)) is a pitfall. How many empty strings are contained in any given string? If the answer is infinitely many, it sounds like a pitfall to me. Cheers, Guillaume Lessard _______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution