Re:Kotlin 1.2 Released: Sharing Code Between Platforms
by seanmcdirmid on Tuesday November 28, 2017 @12:06PM
(#15799049)
So expected is import and actual is export in unit module parlance?
[ Parent
| on HN ]
Re:Kotlin 1.2 Released: Sharing Code Between Platforms
by yole on Tuesday November 28, 2017 @12:24PM
(#15799266)
It's a bit different from a regular export/import relationship. An exported declaration is usually made visible to an unlimited number of clients, and an actual declaration matches a single specific expect declaration.
Re:Kotlin 1.2 Released: Sharing Code Between Platforms
by seanmcdirmid on Tuesday November 28, 2017 @12:37PM
(#15799413)
That’s why I said units, as in program units (Flatt, Findler, etc...). I added a module system to java that did the same thing using light bytecode rewriting in the linking step (kotlin seems to do structural matching, but doesn’t have a reconfigurable linker I guess); https://dl.acm.org/citation.cfm?id=504311.504298.