#types

Found 3 articles tagged with #types

How to use type hints in Python

Type hints don't enforce type checking at runtime, but they provide valuable information for static type checkers, code completion, and code clarity for developers.

Jan 03, 2024#python#types

Type checking vs type casting in Swift

Swift provides several ways to check and cast types, which can be useful when working with objects that have been inherited from a superclass or implemented a protocol.

Mar 26, 2023#swift#types

Swift AnyObject, AnyClass, Any, and `any`

Swift has special types to work with nonspecific types, useful in certain scenarios because they provide a lot of flexibility in working with different types of data.

Mar 22, 2023#swift#types