[swift-evolution] [Idea] Distinguishing code comments from text comments.
jaden.geller at gmail.com
jaden.geller at gmail.com
Mon Aug 29 15:49:17 CDT 2016
You don't have to.
#if false {
// disabled code here
}
> On Aug 29, 2016, at 1:16 PM, DifferentApps info via swift-evolution <swift-evolution at swift.org> wrote:
>
> The advantage is that you do not need to define a conditional flag for the #if.
> It is also more concise.
>
> Code disabling (with /{...}/) is a tool useful when developing algorithm, and disabled code should not be aimed to remain definitively in a Swift file.
>
> Andre Ponzo
>
>> Le 29 août 2016 à 20:20, Magnus Ahltorp <map at kth.se> a écrit :
>>
>>
>>> 27 Aug. 2016 21:03 Andre Ponzo via swift-evolution <swift-evolution at swift.org> wrote:
>>>
>>> 1) Advantages of disabled code ( /{ ... } ) instead of commented-out code (/* ... */):
>>
>>> 2) Advantages of /{ ... } instead of "if false { ... }":
>>
>> What are the advantages of this compared to conditional compilation (#if)?
>>
>> /Magnus
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
More information about the swift-evolution
mailing list