any
Swift โฉ Features โฉ 5.6 โฉ any
้ๅๆฐ็้้ตๅญๆฏๅฐไฝฟ็จ "existential types" ็ไธ็จฎใๆจ็คบใ๏ผๆๅฏ่ชชๆฏใ่ญฆ็คบใ๏ผ
the any
keyword simply annotates that a given type is a so-called existential ... existentials are relatively expensive to use because the compiler and runtime canโt pre-determine how much memory should be allocated for the concrete object that will fill in the existential ... the cost of using existential types should not be hidden, and programmers should explicitly opt into these semantics.
๐ Donny โฉ What is the โanyโ keyword in Swift?
Last updated