[swift-evolution] [Idea] Distinguishing code comments from text comments.
Magnus Ahltorp
map at kth.se
Mon Aug 29 16:26:45 CDT 2016
> 29 Aug. 2016 23:15 DifferentApps info <andre_ponzo at differentapps.com> wrote:
>
> Thanks for your pattern suggestion.
> But it would be also possible to switch between implementations with the proposed syntax as shown bellow:
>
> /{
> <code 1>
> }/
> do {
> <code 2>
> }
No, that would not be sufficient. A constructed example:
#if true
let a : Int64
#else
let a : Int32
#endif
Or, an actual example from some of my own code that i found (but, in this case, C-with-blocks):
#if 0
int nrecords;
#else
__block int nrecords;
#endif
/Magnus
More information about the swift-evolution
mailing list