[swift-evolution] [SR-933] Rename flatten to flattened
Brent Royal-Gordon
brent at architechies.com
Tue Apr 19 11:19:08 CDT 2016
>> I wrote my first Python this week. I was very glad that `map` was named `map`. I just had to glance at the docs to see whether it was a function or a method and which argument came first. It took less time and involved less doubt than learning their closure syntax did.
>
> Are you suggesting that if it had been named “mapped” or “mapping” that you would have been unable to find it? Any decent search engine and/or auto-complete should get you to the correct function just as quickly, again, I don’t think anyone is suggesting that these functions be radically renamed, just that their tense be altered to match the new naming convention, which doesn’t change the root word from which they are derived.
I'm suggesting that if it had been named `mapped` or (especially) `mapping`, I would have been a lot less certain I was looking at the list function and not a type or method that was unrelated to the traditional `map`. I probably would have still found it, but I wouldn't have been immediately sure it was right.
Sent from my iPad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160419/8626c066/attachment.html>
More information about the swift-evolution
mailing list