[swift-evolution] [Idea] Distinguishing code comments from text comments.

DifferentApps info andre_ponzo at differentapps.com
Mon Aug 29 15:16:25 CDT 2016


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
> 
> 



More information about the swift-evolution mailing list