Is it possible to get input data onto <play.kotlin...
# advent-of-code
m
Is it possible to get input data onto play.kotlinlang.org somehow? That would be a nice way to share runnable solutions.
j
I doubt that – HTTP requests are blocked, there’s no possibility to upload any external resources.
m
What is the proper place for such a feature request?
m
No permission to create issue in project kotlinlang.org
😕
j
Oh, please post it in KT then – I’ll pass it forward.
m
What do you mean? You can always put the data into a multi-line string literal. Or define a fun that returns it. That way you can put this fun at the bottom of the file, where it isn’t visually distracting anybody.
m
@Jakub Chrzanowski I found the issue already exists: https://youtrack.jetbrains.com/issue/KT-46705 It could be moved to the proper project though, if that makes sense.
j
CC @Sebastian Aigner
🙏 1
m
Here’s what I mean: https://pl.kotl.in/csOrtSEFN
m
@Michael Böiers Yes you can, but it's not nice UX. Kotlin Playground already supports program arguments, for which the same case could be made.
Cramming all the input as program arguments does work quite well actually: https://pl.kotl.in/qgKrNMM7L
m
Actually all we need here is a textarea for the input being piped to stdin.
m
That's all I'm asking for. 😄
🙌 1