> 29 Aug. 2016 23:15 DifferentApps info <[email protected]> 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

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to