Keywords

The following words are treated as keywords in Swift and have special meaning:

Silver Keywords

Silver adds the following handful of keywords to support some Language Extensions in Apple's standard Swift implementation:

Deprecated Silver 8.1 Exception Handling Keywords

These keywords were defined in Silver 8.1 for Exception Handling. With Swift 2.0 now supporting error handling officially, these are being deprecated in Silver 8.2 and will generate errors. They will be completely removed in subsequent versions of Silver.

Please refer to the Exception and Error Handling topic for more details on the new error handling support in Swift 2.0 and Silver 8.2 and later.

  • __throw
  • __try
  • __catch
  • __finally

Standard Swift Keywords

These standard keywords are defined by Apple's spec for the Swift language (as of version 2.0 of the Apple Swift Compiler), and are also all used by RemObjects Silver's implementation of the language:

  • __COLUMN__
  • __FILE__
  • __FUNCTION__
  • __LINE__
  • as
  • associativity
  • autoreleasepool
  • break
  • case
  • catch
  • class
  • ConstUnsafePointer
  • continue
  • convenience
  • default
  • defer
  • deinit
  • didSet
  • do
  • dynamicType
  • else
  • enum
  • extension
  • fallthrough
  • false
  • final
  • for
  • func
  • get
  • guard
  • if
  • import
  • in
  • infix
  • init
  • inout
  • internal
  • is
  • lazy
  • left
  • let
  • mutating
  • new
  • nil
  • none
  • nonmutating
  • operator
  • optional
  • override
  • postfix
  • precedence
  • prefix
  • private
  • protocol
  • public
  • repeat
  • required
  • return
  • right
  • self
  • Self
  • set
  • static
  • strong
  • struct
  • subscript
  • super
  • switch
  • throw
  • true
  • try
  • Type
  • typealias
  • unowned
  • UnsafePointer
  • var
  • weak
  • where
  • while
  • willSet