Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 668 Bytes

2.0 - Basic Operators.md

File metadata and controls

9 lines (6 loc) · 668 Bytes

Swift includes all the basic C operators, but makes improvements on several of them. e.g:

  • = no longer returns a value to avoid confusion with ==
  • Arithmetic operators detect and avoid value overflow

It also provides range operators to make it easier to express ranges of values.

Previous Section | Back To Contents | Next Note