Intermediate
Swift
Q56 / 100
What is a subscription type conformance (@dynamicMemberLookup)?
Correct! Well done.
Incorrect.
The correct answer is B) An attribute allowing arbitrary member names to be resolved at compile time via subscript(dynamicMember:)
B
Correct Answer
An attribute allowing arbitrary member names to be resolved at compile time via subscript(dynamicMember:)
Explanation
@dynamicMemberLookup enables point.x syntax for types that implement subscript(dynamicMember key: String). Used by Swift for Python/JSON DSLs.
Progress
56/100