[swift-evolution] Proposal: Add scan, takeWhile, dropWhile, and iterate to the stdlib
clattner at apple.com
Mon Jan 11 19:11:13 CST 2016
> On Jan 10, 2016, at 10:20 PM, Kevin Ballard via swift-evolution <swift-evolution at swift.org> wrote:
> When the proposal is "we have a bunch of functions that match functions used in other languages, lets add a few more from the same category of functions that we missed", does there really need to be much explanation beyond "they're useful in the other languages that have them, they'd be useful for the same reasons in Swift”?
I agree with what you’re saying, but the flip-side is: how do we scope what we accept into the standard library? Just existing in some other language doesn’t mean that we should (automatically) accept new standard library functionality.
I’m not arguing for or against your proposal, just trying to say that this rationale isn’t enough to justify adding things to the Swift standard library.
More information about the swift-evolution