I have spent some days using Kotlin and now looking at the BaseLanguage my eyes hurt.

Do you see any major issue preventing the implementation of Kotlin in MPS, in a way that it stays interoperable with the BaseLanguage code but produces Kotlin source code and compile it in the same way the generated Java code is compiled?

I wonder if it could make sense to identify a subset of the language (e.g., data classes) and getting started to get a better feeling of the effort and the major roadblocks for this

Votes

1

Share

This would certainly be substantial effort, especially when it comes to the type-system or integration with BaseLanguage, but technically it is most likely doable. You'd also have to solve the issue of creating stub models for Kotlin libraries, which might require integrating the Kotlin parser.