Objective-C
Swift is a new programming language developed by Apple as an alternative to _________
static typing
types are determined during
... [Show More] compile time
dynamic typing
types are determined during runtime
Playground
to make learning swift more enjoyable, Apple added a new tool called _______
It's one that's safe,fast, and expressive
What's a modern language?
Clean Syntax
makes code readable and easier to work with
Optionals
a new way of expressing when a value may not exist
Type Inference
which speeds up development and allows the compiler to help identify common issues
Type Safety
which enforces code that's less likely to crash your program
Automatic Reference Counting(ARC)
for memory management which automatically handles some of the deeper technical challenges of native programming
Types and multiple return values
allows smaller units of code to do more
Generics
helps developers write codes that can be used in multiple scenarios
Fast and Concise iteration over collection
making swift a fast language
structs that support methods, extensions, and protocols
allows swift to optimize for memory use and speed while providing flexibility for developers
Map, Filter, reduce , and other functional programming patterns
which simplify code and streamline common actions that previously required multiple lines of code
Powerful error handling
helps the developer write fewer bugs and better handle scenarios that would cause apps to crash or perform unexpectedly
Safe Language
a no. of feats already mentioned make swift a ______ by helping you write code that is less likely to crash your app
Type Safety
forces you to be 'explicit' about the type of each object that you create, manipulate, and assign and only lets you write code that the given object can handle
Type Inference
similarly allows the compiler to infer the type of an object thereby saving you time and again ensuring that the compiler can enforce proper rules regarding what operations and functions can be performed w/ each type [Show Less]