JetBrains / kotlin-playground

Self-contained component to embed in websites for running Kotlin code
https://jetbrains.github.io/kotlin-playground/examples/
Apache License 2.0
447 stars 80 forks source link

ability to use arguments that contain spaces #164

Open correabuscar opened 2 years ago

correabuscar commented 2 years ago

https://pl.kotl.in/F9bzKs68u Untitled

import java.util.Arrays
fun main(args: Array<String>) {
    println("Hello, World!"+Arrays.toString(args)+"!")
}

output:

Hello, World![a, b, c, "d, e", 'f, g', "h, "j]!
nikpachoo commented 2 years ago

Hello, @correabuscar! Thank you for the reported issue. I agree with you that such an opportunity should exist. Moreover, the field doesn't help understand how a user must pass arguments. Should it be divided by a comma or semicolon or by space? The user has to guess. We will try to find a suitable solution - KT-53011.