[swift-evolution] Global init() functions

Alan Cabrera adc at toolazydogs.com
Sat Nov 19 08:58:18 CST 2016


I’m not sure if this was proposed or not; or even if this is a Swift-ly way of doing things.  It would be pretty handy to be able to declare init() functions in my module to register handlers.  It’s a common pattern in enterprise software.

Currently, I have to generate a lot of boilerplate code to emulate the behavior.  I think it would be cleaner to have these global init() functions.


Regards,
Alan



More information about the swift-evolution mailing list