[swift-users] dealing with heterogenous lists/dictionary with Codable

David Baraff davidbaraff at gmail.com
Thu Oct 19 14:50:09 CDT 2017


Yes; this is a case where anywhere in the code base I want to just say
	struct MyNewType : Codable {
		// add codable datatypes
	}

and don’t want/can’t always go to the centralized place to add it in.
Is there some extension-like trick I can pull off that lets me spread the implementation out over different files/libraries?



More information about the swift-users mailing list