Great solution for C interop! Eventually, annotations for C language and API notes could be replaced with such automatically-generated-manually-correctable bridge files. We could support a wide range of conversions for @shadowing_c, such as convertion of IUO to optional or unwrapped type. There could also be a CBridgeable protocol (like ObjectiveCBridgeable) to convert Swift data types to ones imported from C. @shadowing_c should support such convertions. Better yet, just rename ObjectiveCBridgeable to Bridgeable, and call new annotation @shadowingImport. Support for other languages, for example, C++, can theoretically be added later.
_______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
