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
Edoardo Luppi
01/25/2024, 3:21 PM
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
Svyatoslav Kuzmich [JB]
01/25/2024, 3:28 PM
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.