[swift-dev] Descriptive Protocol non-conformance errors

Sean Alling allings at icloud.com
Sat Jun 25 15:19:59 CDT 2016


Hi everyone,

I’m suggesting a change to the compiler that returns an error when an object 'does not conform to protocol’ to nest sub-errors that’ll list what properties and methods the object hasn’t implemented.

I’m using the idea of a nested error so that the exceptions thrown will be grouped when shown. That was each doesn’t create a new error, racking up the error count, but rather just showing the developer the things he/she needs to implement.

- Sean


More information about the swift-dev mailing list