[swift-evolution] @avaliable and #avaliable
Jean-Daniel Dupas
mailing at xenonium.com
Thu Feb 4 10:02:27 CST 2016
# as seen a convention for compiler generated code. #line expands to a String, #available expands to a runtime check that represent a bool.
I don’t see what’s wrong with that.
> Le 4 févr. 2016 à 16:53, James Campbell via swift-evolution <swift-evolution at swift.org> a écrit :
>
> Just in general. I've been told that # is being seen as a convention for the compiler to treat it like a macro but we have @avaliable and you're saying #avaliable isn't even a compiler check.
>
> ___________________________________
>
> James⎥Lead Engineer
>
> james at supmenow.com <mailto:james at supmenow.com>⎥supmenow.com <http://supmenow.com/>
> Sup
>
> Runway East
>
>
> 10 Finsbury Square
>
> London
>
>
> EC2A 1AF
>
>
> On Thu, Feb 4, 2016 at 3:48 PM, Jean-Daniel Dupas <mailing at xenonium.com <mailto:mailing at xenonium.com>> wrote:
> It depends it you talk about the @vailable attribute used to annotate methods, or the #available runtime check used to choose a code path depending the OS version.
>
>> Le 4 févr. 2016 à 16:05, James Campbell via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> a écrit :
>>
>> How come avaliable sometimes has a @ and a #
>> ___________________________________
>>
>> James⎥Lead Engineer
>>
>> james at supmenow.com <mailto:james at supmenow.com>⎥supmenow.com <http://supmenow.com/>
>> Sup
>>
>> Runway East
>>
>>
>> 10 Finsbury Square
>>
>> London
>>
>>
>> EC2A 1AF
>>
>> _______________________________________________
>> swift-evolution mailing list
>> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
>> https://lists.swift.org/mailman/listinfo/swift-evolution <https://lists.swift.org/mailman/listinfo/swift-evolution>
>
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160204/a7e4b714/attachment.html>
More information about the swift-evolution
mailing list