Keywords

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

RemObjects Swift Keywords

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

Deprecated Exception Handling Keywords

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

Please refer to the Exception and Error Handling topic for more details on the new error handling support in Swift 2.0 and RemObjects Swift 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 Swift'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