Swift的關鍵字

來源:互聯網
上載者:User

標籤:swift的關鍵字

常見的關鍵字有以下4種:


1、與聲明有關的關鍵字:


    class,deinit,enum,extension,func,import,init,let,protocol,static,struct,subscript,typealias,var


2、與語句有關的關鍵字:


    break,case,continue,default,do,else,fallthrough,if,in,for,return,switch,return,where,while


3、運算式和類型關鍵字:


    as,dynamicType,is,new,super,self,Self,Type,_COLUMN_,_FILE_,_FUNCTION_,_LINE_


4、在特定上下文使用的關鍵:


    associactivity,didSet,get,infix,inout,left,mutating,none,nonmutatin,operator,override,postfix,precedence,prefix,rightset,unowned,unowned(safe),unown(unsafe),weak,willSet.






    

本文出自 “平凡之路” 部落格,請務必保留此出處http://linjohn.blog.51cto.com/1026193/1618978

Swift的關鍵字

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.