General Definitions Flashcards
(28 cards)
Perform operations like assignment, arithmetic, and comparison
Basic Operators
Store and manipulate text
Strings and Characters
Organize data using arrays, sets, and dictionaries
Collection Types
Structure code with branches, loops, and early exits
Control Flow
Define and call functions, label their arguments, and use their return values
Functions
Group code that executes together, without creating a named function
Closures
Model custom types that define a list of possible values
Enumerations
Model custom types that encapsulate data
Structures and Classes
Access stored and computed values that are part of an instance or type
Properties
Define and call functions that are part of an instance or type
Methods
Access the elements of a collection
Subscripts
Subclass to add or override functionality
Inheritance
Set the initial values for a type’s stored properties and perform one-time setup
Initialization
Release resources that require custom cleanup
Deinitialization
Access members of an optional value without unwrapping
Optional Chaining
Respond to and recover from errors
Error Handling
Perform asynchronous operations.
Concurrency
Use macros to generate code at compile time
Macros
Determine a value’s runtime type and give it more specific type information
Type Casting
Define types inside the scope of another type
Nested Types
Add functionality to an existing type
Extensions
Define requirements that conforming types must implement
Protocols
Write code that works for multiple types and specify requirements for those types
Generics
Hide implementation details about a value’s type
Opaque and Boxed Types