# Latest

**URL:** https://discuss.kotlinlang.org/latest.md?page=7

[Latest](https://discuss.kotlinlang.org/latest.md) · [Categories](https://discuss.kotlinlang.org/categories.md)

**Page:** 8

---

## [Mikrator (a Liquibase wrapper): changelogs as code, easy usage](https://discuss.kotlinlang.org/t/mikrator-a-liquibase-wrapper-changelogs-as-code-easy-usage/30452)

<div class="topic-metadata">

**Author:** [@frozenice](https://discuss.kotlinlang.org/u/frozenice)\
**Replies:** 6\
**Last updated:** [June 15, 2025, 7:39am UTC](https://discuss.kotlinlang.org/t/mikrator-a-liquibase-wrapper-changelogs-as-code-easy-usage/30452 "2025-06-15T07:39:27Z")

</div>

I always wanted to integrate a database migration tool, like Liquibase, into projects. But I didn’t quite like the untyped changelog files or some APIs. I love Kotlin DSLs and static typing, so I had the idea of creating…

---

## [Kotlin for .NET](https://discuss.kotlinlang.org/t/kotlin-for-net/12801)

<div class="topic-metadata">

**Author:** [@Michael.Kay.1](https://discuss.kotlinlang.org/u/Michael.Kay.1)\
**Replies:** 38\
**Last updated:** [August 3, 2023, 4:50pm UTC](https://discuss.kotlinlang.org/t/kotlin-for-net/12801 "2023-08-03T16:50:48Z")

</div>

There have been a few discussions on this, notably here: mainly discussing whether or not there is a requirement for Kotlin on .NET. I’m more interested in a different angle: is it feasible? In Saxon we have a produ…

---

## [Reverse C interop passing array to Kotlin Native and back](https://discuss.kotlinlang.org/t/reverse-c-interop-passing-array-to-kotlin-native-and-back/20592)

<div class="topic-metadata">

**Author:** [@u10q50](https://discuss.kotlinlang.org/u/u10q50)\
**Replies:** 1\
**Last updated:** [June 13, 2025, 6:46pm UTC](https://discuss.kotlinlang.org/t/reverse-c-interop-passing-array-to-kotlin-native-and-back/20592 "2025-06-13T18:46:10Z")

</div>

Hello, I got stuck while trying to write a library where kotlin code is called from another C library which is loaded in another application with a strict interface so I was following these tutorials to see how the inte…

---

## [Fraction multiplication](https://discuss.kotlinlang.org/t/fraction-multiplication/30456)

<div class="topic-metadata">

**Author:** [@absoluteb0bc4t](https://discuss.kotlinlang.org/u/absoluteb0bc4t)\
**Replies:** 1\
**Last updated:** [June 12, 2025, 8:49pm UTC](https://discuss.kotlinlang.org/t/fraction-multiplication/30456 "2025-06-12T20:49:31Z")

</div>

Hi, I am starting my Kotlin journey and trying some easy (as easy as Kotlin seems to be) codes for things that come to my mind. I tried to make this code for adding two fractions together. Sorry for making the names so l…

---

## [Idiomatic way to embed three double quotes in a triple quoted / multiline string](https://discuss.kotlinlang.org/t/idiomatic-way-to-embed-three-double-quotes-in-a-triple-quoted-multiline-string/29801)

<div class="topic-metadata">

**Author:** [@nikclayton](https://discuss.kotlinlang.org/u/nikclayton)\
**Replies:** 2\
**Last updated:** [June 12, 2025, 7:47am UTC](https://discuss.kotlinlang.org/t/idiomatic-way-to-embed-three-double-quotes-in-a-triple-quoted-multiline-string/29801 "2025-06-12T07:47:49Z")

</div>

There doesn’t seem to be a mechanism to embed """ in a triple-quoted string that doesn’t involve interpolation. I.e.: val tq = "\\"\\"\\"" val s = """ This string needs to contain triple quotes, like this: $tq """ Obvious…

---

## [About property getters](https://discuss.kotlinlang.org/t/about-property-getters/30447)

<div class="topic-metadata">

**Author:** [@97jpfb](https://discuss.kotlinlang.org/u/97jpfb)\
**Replies:** 2\
**Last updated:** [June 11, 2025, 7:28am UTC](https://discuss.kotlinlang.org/t/about-property-getters/30447 "2025-06-11T07:28:22Z")

</div>

Consider this: class SomeClass { val someProperty: SomeType get() { /\* ... \*/ } } Why not have property getters without parentheses? Something like: class SomeClass { val someProperty: SomeType …

---

## [Lateinit primitive types](https://discuss.kotlinlang.org/t/lateinit-primitive-types/24406)

<div class="topic-metadata">

**Author:** [@donaldtam](https://discuss.kotlinlang.org/u/donaldtam)\
**Replies:** 8\
**Last updated:** [June 11, 2025, 6:31am UTC](https://discuss.kotlinlang.org/t/lateinit-primitive-types/24406 "2025-06-11T06:31:53Z")

</div>

I am sure this has been asked before, why no lateinit primitive types? However, I am just confused with the answer that lateinit primitives are technically impossible From what I know the null value is used as uninitia…

---

## [Make overloading of inline functions smarter](https://discuss.kotlinlang.org/t/make-overloading-of-inline-functions-smarter/30444)

<div class="topic-metadata">

**Author:** [@Landei](https://discuss.kotlinlang.org/u/Landei)\
**Replies:** 4\
**Last updated:** [June 8, 2025, 7:40am UTC](https://discuss.kotlinlang.org/t/make-overloading-of-inline-functions-smarter/30444 "2025-06-08T07:40:09Z")

</div>

It is a well known fact that functions can be only differentiated by arguments, but not by return type or type parameters. Inline functions are by definition, well, inlined, so in theory such considerations shouldn’t ap…

---

## [How to use compose-multiplatform-resources in KMP SwiftUI?](https://discuss.kotlinlang.org/t/how-to-use-compose-multiplatform-resources-in-kmp-swiftui/30438)

<div class="topic-metadata">

**Author:** [@jsivarajesh](https://discuss.kotlinlang.org/u/jsivarajesh)\
**Replies:** 0\
**Last updated:** [June 6, 2025, 12:28pm UTC](https://discuss.kotlinlang.org/t/how-to-use-compose-multiplatform-resources-in-kmp-swiftui/30438 "2025-06-06T12:28:58Z")

</div>

How to share resource id and call from swift UI in KMP? Is this possible CMP lib in KMP? I thought this was replacement for Moko lib Example below given in Using multiplatform resources in your app | Kotlin Multiplatf…

---

## [Howto re-order my buttons?](https://discuss.kotlinlang.org/t/howto-re-order-my-buttons/30431)

<div class="topic-metadata">

**Author:** [@erikonbali](https://discuss.kotlinlang.org/u/erikonbali)\
**Replies:** 2\
**Last updated:** [June 6, 2025, 8:48am UTC](https://discuss.kotlinlang.org/t/howto-re-order-my-buttons/30431 "2025-06-06T08:48:48Z")

</div>

Hi All, I’m new to Kotlin. I made an app for displaying Jazz sheets. But now I want the 35 presenting buttons re-order, so it’s alphabetical correct. Replacing the ‘button-blocks’ in XML did not the trick. I assume i…

---

## [Polymorphism based on sealed class](https://discuss.kotlinlang.org/t/polymorphism-based-on-sealed-class/30414)

<div class="topic-metadata">

**Author:** [@digorydoo](https://discuss.kotlinlang.org/u/digorydoo)\
**Replies:** 11\
**Last updated:** [June 4, 2025, 7:52am UTC](https://discuss.kotlinlang.org/t/polymorphism-based-on-sealed-class/30414 "2025-06-04T07:52:21Z")

</div>

Consider the following: sealed class Base class A: Base() class B: Base() fun doSomething(thing: Base) { when (thing) { is A -\> doIt(thing) is B -\> doIt(thing) } } fun doIt(a: A) { println("A"…

---

## [Java like "assert" statement](https://discuss.kotlinlang.org/t/java-like-assert-statement/2277)

<div class="topic-metadata">

**Author:** [@fvasco](https://discuss.kotlinlang.org/u/fvasco)\
**Replies:** 37\
**Last updated:** [May 31, 2025, 5:09pm UTC](https://discuss.kotlinlang.org/t/java-like-assert-statement/2277 "2025-05-31T17:09:07Z")

</div>

Both Java and Kotlin have “assert” statement, they look equals but are greatly different. Java assert is per class enabled and expression evaluation is done only when assertion is enabled. By default, assertions are d…

---

## [Kotlin needs more exciting new features, and that probably means embracing more controlled risk](https://discuss.kotlinlang.org/t/kotlin-needs-more-exciting-new-features-and-that-probably-means-embracing-more-controlled-risk/29470)

<div class="topic-metadata">

**Author:** [@jonnypants](https://discuss.kotlinlang.org/u/jonnypants)\
**Replies:** 5\
**Last updated:** [May 29, 2025, 6:04pm UTC](https://discuss.kotlinlang.org/t/kotlin-needs-more-exciting-new-features-and-that-probably-means-embracing-more-controlled-risk/29470 "2025-05-29T18:04:03Z")

</div>

I’ve been using Kotlin for 7+ years now. I love Kotlin. I understand and appreciate that Kotlin is strongly-typed. I enjoy and celebrate knowing that some things will never ever be null. But I enjoyed it more when there …

---

## [Improve type inference for types with common type parameters](https://discuss.kotlinlang.org/t/improve-type-inference-for-types-with-common-type-parameters/30400)

<div class="topic-metadata">

**Author:** [@madcloud10](https://discuss.kotlinlang.org/u/madcloud10)\
**Replies:** 2\
**Last updated:** [May 26, 2025, 5:14pm UTC](https://discuss.kotlinlang.org/t/improve-type-inference-for-types-with-common-type-parameters/30400 "2025-05-26T17:14:42Z")

</div>

I tried various ways of having a single hierarchy to use for “tagging” and using it to infer the member types of arbitrary “aggeragates” of data I’d like to be related by a type parameter, and ran into various inference …

---

## [Kotlin Multiplatform & CocoaPods: iOS Deployment Target Ignored in Framework Build](https://discuss.kotlinlang.org/t/kotlin-multiplatform-cocoapods-ios-deployment-target-ignored-in-framework-build/30127)

<div class="topic-metadata">

**Author:** [@e.spirou](https://discuss.kotlinlang.org/u/e.spirou)\
**Replies:** 2\
**Last updated:** [May 25, 2025, 4:25am UTC](https://discuss.kotlinlang.org/t/kotlin-multiplatform-cocoapods-ios-deployment-target-ignored-in-framework-build/30127 "2025-05-25T04:25:43Z")

</div>

Environment: Kotlin: 2.0.0 Gradle: 8.8 AGP: 8.3.0 Xcode: 15.4 CocoaPods version: 1.15.2 macOS version: 14.7 (build 23H124) Issue Description: I am working on a Kotlin Multiplatform Mobile (KMM) project that integrate…

---

## [Official support for Visual Studio Code](https://discuss.kotlinlang.org/t/official-support-for-visual-studio-code/8242)

<div class="topic-metadata">

**Author:** [@kotlinlspdev](https://discuss.kotlinlang.org/u/kotlinlspdev)\
**Replies:** 35\
**Last updated:** [May 23, 2025, 6:43am UTC](https://discuss.kotlinlang.org/t/official-support-for-visual-studio-code/8242 "2025-05-23T06:43:07Z")

</div>

Whilst support for the language server protocol has been requested previously, would it be possible to reconsider official support for Visual Studio Code? VSCode has been ranked number 1 amongst the most popular IDEs on …

---

## [Specify nodejs executable for Kotlin Gradle plugin instead of downloading it](https://discuss.kotlinlang.org/t/specify-nodejs-executable-for-kotlin-gradle-plugin-instead-of-downloading-it/18889)

<div class="topic-metadata">

**Author:** [@Ballmerpeaking](https://discuss.kotlinlang.org/u/Ballmerpeaking)\
**Replies:** 4\
**Last updated:** [May 17, 2025, 6:48pm UTC](https://discuss.kotlinlang.org/t/specify-nodejs-executable-for-kotlin-gradle-plugin-instead-of-downloading-it/18889 "2025-05-17T18:48:10Z")

</div>

Is there a way to specify a nodejs executable (i.e. use $PATH to resolve it) in the Kotlin Gradle plugin instead of the downloaded one? The problem is the following: I use NixOS which doesn’t have a traditional filesyst…

---

## [Infer type from filterIsInstance](https://discuss.kotlinlang.org/t/infer-type-from-filterisinstance/30349)

<div class="topic-metadata">

**Author:** [@kalayda](https://discuss.kotlinlang.org/u/kalayda)\
**Replies:** 3\
**Last updated:** [May 13, 2025, 3:59am UTC](https://discuss.kotlinlang.org/t/infer-type-from-filterisinstance/30349 "2025-05-13T03:59:36Z")

</div>

Having interface sealed interface Param\<T\> { val value: T @JvmInline value class Power(override val value: Float) : Param\<Float\> @JvmInline value class Income(override val value: Float) : Param\<Fl…

---

## [Access value by type with any kind of data structure](https://discuss.kotlinlang.org/t/access-value-by-type-with-any-kind-of-data-structure/30348)

<div class="topic-metadata">

**Author:** [@kalayda](https://discuss.kotlinlang.org/u/kalayda)\
**Replies:** 4\
**Last updated:** [May 11, 2025, 10:53am UTC](https://discuss.kotlinlang.org/t/access-value-by-type-with-any-kind-of-data-structure/30348 "2025-05-11T10:53:46Z")

</div>

Suppose I need to keep three numbers of Int, Long and Float in a bunch, and access these numbers by their type. First idea is to use HashMap, where key is type of number, and value is number itself. val bunch = mapOf\<K…

---

## [Questions about the usage coroutine & SharedFlow usage](https://discuss.kotlinlang.org/t/questions-about-the-usage-coroutine-sharedflow-usage/24291)

<div class="topic-metadata">

**Author:** [@airic.yu](https://discuss.kotlinlang.org/u/airic.yu)\
**Replies:** 7\
**Last updated:** [February 27, 2022, 7:08pm UTC](https://discuss.kotlinlang.org/t/questions-about-the-usage-coroutine-sharedflow-usage/24291 "2022-02-27T19:08:48Z")

</div>

Hello, I am newbie and would want to ask correct usage of coroutine and sharedFlow. For example of below code, in the function I want to parallel call two actions. I expect that there will be 3 possible result: The ac…

---

## [Is Maven a Viable Replacement for Gradle in Kotlin Development?](https://discuss.kotlinlang.org/t/is-maven-a-viable-replacement-for-gradle-in-kotlin-development/30337)

<div class="topic-metadata">

**Author:** [@vmka](https://discuss.kotlinlang.org/u/vmka)\
**Replies:** 5\
**Last updated:** [May 10, 2025, 9:43am UTC](https://discuss.kotlinlang.org/t/is-maven-a-viable-replacement-for-gradle-in-kotlin-development/30337 "2025-05-10T09:43:16Z")

</div>

I have a low-spec potato laptop (i3 gen 3 2ghz with 8gb ram), and I’ve tried using Gradle with IntelliJ—it felt like my laptop was about to explode. I looked for alternatives and tried Gradle with VSCode. This time it di…

---

## [Parameter and method precedence](https://discuss.kotlinlang.org/t/parameter-and-method-precedence/30344)

<div class="topic-metadata">

**Author:** [@sylvainspinelli](https://discuss.kotlinlang.org/u/sylvainspinelli)\
**Replies:** 1\
**Last updated:** [May 9, 2025, 11:19am UTC](https://discuss.kotlinlang.org/t/parameter-and-method-precedence/30344 "2025-05-09T11:19:50Z")

</div>

I had this (very simplified) code: // In a generic lib interface ISerializer { //... } // In a project using this lib class MySerializer : ISerializer { fun writeMyBlock(name: String, exp: ISerializer.() -\> Unit) { …

---

## [Codeql implementation in kotlin](https://discuss.kotlinlang.org/t/codeql-implementation-in-kotlin/26523)

<div class="topic-metadata">

**Author:** [@mannasagar6](https://discuss.kotlinlang.org/u/mannasagar6)\
**Replies:** 5\
**Last updated:** [May 9, 2025, 7:05am UTC](https://discuss.kotlinlang.org/t/codeql-implementation-in-kotlin/26523 "2025-05-09T07:05:10Z")

</div>

\#. while trying to implement codeql with kotlin springboot project that time I am getting “No code found during the code build” error. I have configured codeql.yml file below name: “CodeQL” on: push: branches: \[ tas…

---

## [suspendCoroutine COMPLETELY BROKEN?](https://discuss.kotlinlang.org/t/suspendcoroutine-completely-broken/30340)

<div class="topic-metadata">

**Author:** [@ejtagle](https://discuss.kotlinlang.org/u/ejtagle)\
**Replies:** 2\
**Last updated:** [May 9, 2025, 3:18am UTC](https://discuss.kotlinlang.org/t/suspendcoroutine-completely-broken/30340 "2025-05-09T03:18:06Z")

</div>

I have tried the following code: This is the simplest … If am not mistaken, this should print about to block in runBlocking - before calls in runBlocking - after test1() inside init in runBlocking - after test2() …

---

## [Bug of type checking for numeric types on Js platform](https://discuss.kotlinlang.org/t/bug-of-type-checking-for-numeric-types-on-js-platform/30333)

<div class="topic-metadata">

**Author:** [@vk](https://discuss.kotlinlang.org/u/vk)\
**Replies:** 0\
**Last updated:** [May 7, 2025, 1:36pm UTC](https://discuss.kotlinlang.org/t/bug-of-type-checking-for-numeric-types-on-js-platform/30333 "2025-05-07T13:36:30Z")

</div>

It looks like Kotlin (checked with 1.9.22 and with 2.1.20) common code does not properly do type checking of primitive types on Js platform. Is this a bug or a feature? val x: Double = 180.0 val y: Any = x if (y is Byt…

---

## [Context Parameters support for PSI](https://discuss.kotlinlang.org/t/context-parameters-support-for-psi/30317)

<div class="topic-metadata">

**Author:** [@bassem-saeed](https://discuss.kotlinlang.org/u/bassem-saeed)\
**Replies:** 2\
**Last updated:** [May 4, 2025, 7:49pm UTC](https://discuss.kotlinlang.org/t/context-parameters-support-for-psi/30317 "2025-05-04T19:49:09Z")

</div>

Does ContextParameter will be added to psi like “KtContextParameter” or not?

---

## [Explicit dependencies for coroutines](https://discuss.kotlinlang.org/t/explicit-dependencies-for-coroutines/13775)

<div class="topic-metadata">

**Author:** [@darksnake](https://discuss.kotlinlang.org/u/darksnake)\
**Replies:** 11\
**Last updated:** [August 7, 2019, 6:21pm UTC](https://discuss.kotlinlang.org/t/explicit-dependencies-for-coroutines/13775 "2019-08-07T18:21:46Z")

</div>

I am currently refactoring some of my libraries, because it seems like current coroutines solve most of problems, I’ve tried to solve myself. The only question that remains are the dependencies. I have a task graph, wher…

---

## [Improved Any?.toString](https://discuss.kotlinlang.org/t/improved-any-tostring/30309)

<div class="topic-metadata">

**Author:** [@crazo7924](https://discuss.kotlinlang.org/u/crazo7924)\
**Replies:** 1\
**Last updated:** [May 3, 2025, 2:47pm UTC](https://discuss.kotlinlang.org/t/improved-any-tostring/30309 "2025-05-03T14:47:07Z")

</div>

I love the fact that we have Any?.toString but it returns “null” when the receiver is (duh) null. Instead of this, we could pass an optional String parameter which could be the return value. My implementation: fun Any…

---

## [There are no ecs library for android app development](https://discuss.kotlinlang.org/t/there-are-no-ecs-library-for-android-app-development/30307)

<div class="topic-metadata">

**Author:** [@Neeraj\_Sharma](https://discuss.kotlinlang.org/u/Neeraj_Sharma)\
**Replies:** 0\
**Last updated:** [May 2, 2025, 11:30pm UTC](https://discuss.kotlinlang.org/t/there-are-no-ecs-library-for-android-app-development/30307 "2025-05-02T23:30:45Z")

</div>

There is no ECS library for developing Android apps, so I tried using the ECS way to create a simple todo application. Anyone interested, please check. If you have any ideas, please share them! github quick view

---

## [Does Kotlin compiler verify that match block is exhaustive as in Scala?](https://discuss.kotlinlang.org/t/does-kotlin-compiler-verify-that-match-block-is-exhaustive-as-in-scala/29919)

<div class="topic-metadata">

**Author:** [@Oliver\_Plohmann](https://discuss.kotlinlang.org/u/Oliver_Plohmann)\
**Replies:** 4\
**Last updated:** [May 2, 2025, 9:59am UTC](https://discuss.kotlinlang.org/t/does-kotlin-compiler-verify-that-match-block-is-exhaustive-as-in-scala/29919 "2025-05-02T09:59:02Z")

</div>

Hello, last time I checked this out in Kotlin it was not the case as far as a I remember. Now I work on a Scala project (I like Kotlin much as well, but it happens to be a Scala project) where we make use of Scala match…

[Previous page](https://discuss.kotlinlang.org/latest.md?page=6)

[Next page](https://discuss.kotlinlang.org/latest.md?page=8)
