[swift-evolution] [swift-evolution-announce] [Review] SE-0037 Clarify interaction between comments & operators
davesweeris at mac.com
davesweeris at mac.com
Fri Mar 11 13:35:44 CST 2016
Yeah, I use them for stuff like that a lot, or if my comments are more, um, “paragraphical" in nature (I can be somewhat long-winded at times).
> On Mar 11, 2016, at 1:29 PM, Jordan Rose <jordan_rose at apple.com> wrote:
>
> I can't agree that /*…*/ comments are useless. The examples in the proposal aren't things I would write, but I can certainly think of other places I use them.
>
> if foo > 0 {
> } else if foo < 0 {
> } else /* foo == 0 */ {
> }
>
> // We can't use SpecificType here because of XXX.
> let foo: protocol<OtherType/*, SpecificType*/> = bar()
>
> …and then given that we have /**/ comments in the language, we should define their behavior even in places you and I personally don't intend to write them.
>
> Jordan
- Dave Sweeris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160311/3fb4d952/attachment.html>
More information about the swift-evolution
mailing list