[swift-corelibs-dev] incomplete implementation warning functions

Will Stanton willstanton1 at yahoo.com
Thu Jan 21 04:55:35 CST 2016


Hello,

I would like to propose functions that warn about incomplete implementations without calling NSUnimplemented/fatalError. They could provide a standard interface for reminding/warning about incomplete implementations while things are being built.

I was thinking of two utility functions:
1) NSWarnIncompleteImplementation: Prints a warning message once. Can make potential issues clear (without flooding the console), particularly for classes where most of the implementation is there, but something could fail for certain parameters/configurations.
2) NSWarnUnimplemented: prints a warning on each call, ex. in a setter that doesn’t do anything

Something like:
https://github.com/e78l/swift-corelibs-foundation/commit/f69f174ef0cfcdd32fb43912c2c88179fce07ce3

Are there are any recommendations/thoughts about incorporating these functions?

Regards,
Will Stanton



More information about the swift-corelibs-dev mailing list