kotlin-python
kotlin-python copied to clipboard
Python target for the Kotlin Programming Language. See https://github.com/krzema12/kotlin-python/tree/python-backend/python
https://kotlinlang.slack.com/archives/C0289CS37AS/p1636875290016700 We were advised by JetBrains to look at how kotlin-stdlib-wasm is implemented.
Originally created by @SerVB.
Now `continue` is unsupported. Probably we can support it by compiling `do { } while ()` as follows: ``` firstIterationLoopName = true while firstIterationLoopName or (): firstIterationLoopName = false ```...
Originally created by @SerVB.
For now, in case of names collisions, we have some ineffective logic. At least for classes, if there are classes named as A in different packages, they become A_0 and...
Originally created by @SerVB. If it's just `Unit`, just return Python's `None`; if it's nullable (`Unit?`), then do some more complex logic like `null` -> `None` and `Unit` -> `Unit.getInstance()`....
See e. g. https://github.com/krzema12/kotlin-python/runs/4344104341?check_suite_focus=true It looks like an issue not relevant to our changes. Compiling the compiler fails.
Lowerings are a big part of backend logic, so let's ensure we know what happens there and that we don't have anything surplus or weird. - #95 - [x] analyze...
See https://github.com/krzema12/kotlin-python/pull/115