[swift-evolution] Issues with 0005-Better Translation of Objective-C APIs Into Swift
preston.sumner at gmail.com
Tue Feb 2 20:58:03 CST 2016
> On Feb 2, 2016, at 12:16 PM, Kevin Schlei via swift-evolution <swift-evolution at swift.org> wrote:
> Sorry for the premature send! Continuing:
> let content = listItemView.text.trimming(.whitespaceAndNewlines)
> For a beginning programmer, there is no indication of what .trimming does. In this case, it returns a new string instance. Where is that explained? In the documentation. Nowhere near the method call.
To me, it reads like documentation: “content” is assigned the list item view’s text, trimming whitespace and newlines.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution