Swift


 Swift

Development of Swift started in July in 2010 by Chris Lattner. It was developed by Apple 

  • Swift is general purpose programming language built using modern approach to safety performance software design patterns.
  • Swift is to create the best available language for uses ranging from system programming to mobile and desktop , apps , scaling up to cloud services.
  • Swift is designed to make writing and maintaining correct program easier for the developed.

Is it Safe?

Swift most obvious way to write code should in a safe manner. Undefined behavior is the enemy of safety and developers mistake should be caught before software is in production. Opting for safety sometimes means Swift will feel Strict but we believe that clarity saves time in the long run.

Is it fast ?

  • Swift is intended as a replacement for C-based language ( C , C++, and objective-C). As such Swift must be comparable to those language in performance for most task.
  • Performance must also predictable and consistent not just fast in short bursts that require clean-up later.

Features

  • Swift support inferred types to make code cleaner and less prone to mistake , and module eliminate headers and provide namespace.
  • Memory is managed automatically and you don't even need to type semi-colons.
  • Tuples and multiple return value.
  • Closures unified with the function pointers.
  • Generics
  • Fast and concise iteration over a range or collection.
  • Struct that supports methods extensions and protocols.
  • Functional programming patterns Ex- Map and filter.
  • Advanced control flow with do guard , defer , and repeat keywords.
  • Supporting operating system MacOs, Linux , Windows etc.

Comments

Popular Posts