[swift-corelibs-dev] incomplete implementation warning functions

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


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:

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

Will Stanton

More information about the swift-corelibs-dev mailing list