Derek Ellis
04/16/2022, 4:22 AMRajashekar
04/19/2022, 8:34 AMinovra
04/20/2022, 6:51 AMCasey Brooks
04/21/2022, 2:42 PMJoffrey
04/23/2022, 8:36 AMSlackbot
04/29/2022, 10:03 PMBig Chungus
05/03/2022, 9:26 PMDave Leeds
05/04/2022, 3:26 PMTheOnlyTails
05/08/2022, 2:03 PMHorácio Comé
05/10/2022, 8:14 AMMaksims Kims
05/13/2022, 11:03 AMpambrose
05/15/2022, 1:21 AMxxfast
05/18/2022, 3:20 PMreformator
05/18/2022, 10:22 PMkpgalligan
05/19/2022, 4:03 PMLeoColman
05/21/2022, 11:31 PMToshihiro Nakamura
05/22/2022, 12:24 PMShreyas Patil
05/23/2022, 3:23 PMBig Chungus
06/01/2022, 10:14 AMBig Chungus
06/04/2022, 4:32 PMjvm
category includes both, java-jvm and android-jvmuser
06/06/2022, 2:58 PMuser
06/06/2022, 6:18 PMJoost Klitsie
06/09/2022, 1:55 PMnfrankel
06/12/2022, 7:07 PMDave Leeds
06/14/2022, 3:10 PMYoussef Shoaib [MOD]
06/18/2022, 5:32 PM@NullDefaults
with null
for a default argument and the function replaces that argument with the default value. Check the repo for more examples
E.g:
// Kotlin
fun test(value: Int = 42) {
println(value)
}
// Java
public static void main(String[] args){
TestKt.test(null); // Prints 42
}
Try it today:
plugins {
...
id("io.github.kyay10.kotlin-null-defaults") version "0.2.0"
}
user
06/21/2022, 12:18 PMLukas Lechner
06/21/2022, 5:31 PMhttps://youtu.be/tVDCpjqQ1Ro▾
Matthias Geisler
06/21/2022, 8:05 PMMatthias Geisler
06/21/2022, 8:06 PMMatthias Geisler
06/21/2022, 8:06 PMHenri Langenhoven
06/23/2022, 1:13 PMMatthias Geisler
06/23/2022, 1:52 PM