Advanced
Swift
Q66 / 100
What is the ~Copyable protocol and noncopyable types in Swift?
Correct! Well done.
Incorrect.
The correct answer is B) Types that suppress the implicit Copyable conformance, enabling move-only semantics where ownership must be explicitly transferred
B
Correct Answer
Types that suppress the implicit Copyable conformance, enabling move-only semantics where ownership must be explicitly transferred
Explanation
struct FileHandle: ~Copyable disables copying. The value must be moved or consumed. Enables RAII patterns and unique-ownership types at the language level.
Progress
66/100