Would making `kotlin.io.printError` public be a re...
# webassembly
e
Would making
kotlin.io.printError
public be a reasonable request for WASM WASI?
s
I think request of a common KMP API for stderr would be great. IMO, such common feature shouldn’t be Wasm-only and should take other targets into account. Also, while
printError
is already implemented as internal, it wasn’t intended to be public. Some alternative designs solving the same problem could be better.
e
I've noticed all platforms have stderr marked internal, and yes I agree a public API is needed. In the meantime I'm just muting the compiler errors when referencing those definitions, but with K2 it seems it's not possible anymore.
s
You can copy the function source code to your project or separate library while waiting for the official support. Perhaps, some third-party KMP I/O libraries would be eager to design and include this sooner.