计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
swift-language【效率与协作】Apply Optionals, Protocols, Extensions, and Type Safety patterns in Swift. Use when working with Swift Optionals, Protocols, Extensions, or type-safe APIs.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
value != nil instead of if let _ = value.Type!. Use proper Type?.extension MyType: MyProtocol { ... }. Use extensions for clean code organization, not storage ( not use extensions for stored properties).Any: Use generics or associated types instead for compile-time safety.case .success(let value):).class only when reference identity necessary or for inheritance. Structs copied; classes shared.When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant:
Default to struct
Never force unwrap
associated values
value types
Additional task-grounded exact anchors: extension MyType: MyProtocol; conformance