Diego
01/18/2019, 11:56 AM@protocol Foo -> interface FooProtocol
. Why? I guess this is a question for the designers of Kotlin/Native but I’m just wondering what is the reason behind that. My opinion is that this is unnecessary and I would prefer this to be transparent and just use the interface with the original protocol name. I do not see why we should be aware about the fact that it comes from a framework.svyatoslav.scherbina
01/18/2019, 11:58 AMNSObject
class and NSObject
protocol.
So we can’t import both to Kotlin using original names.
Current approach is a bit conservative and may be improved later.Diego
01/18/2019, 12:06 PMDiego
01/18/2019, 12:10 PMtypealias
for those cases to make the names ‘less verbose’