[swift-evolution] [Review] SE-0023 API Design Guidelines

Jeff Kelley slaunchaman at gmail.com
Fri Jan 22 15:57:14 CST 2016


> On Jan 22, 2016, at 4:53 PM, Joe Groff via swift-evolution <swift-evolution at swift.org> wrote:
> 
> How do you handle naming non-mutating versions of these operations? Conjugating other irregular verbs also imposes a barrier on developers whose first language is not English.

Swift could use “after” as a prefix, or something similar.

array.sort()
array.afterSort()

I was tempted to say “afterSorting()” but that has the same problems mentioned above.


Jeff Kelley

SlaunchaMan at gmail.com | @SlaunchaMan <https://twitter.com/SlaunchaMan> | jeffkelley.org <http://jeffkelley.org/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160122/05101914/attachment.html>


More information about the swift-evolution mailing list