In the scope of targeting 2.0, I'm trying to remov...
# webassembly
e
In the scope of targeting 2.0, I'm trying to remove error suppressions. In antlr-kotlin I have some INVISIBLE_MEMBER and INVISIBLE_REFERENCE suppressions to access printing to the error stream. They were easy to remove in Kotlin/Native as all what's needed is public, and there isn't much work to do overall. However, I'm not sure for WASI. Should I just copy
Copy code
internal fun printError(error: String?) {
    printImpl(error, useErrorStream = true, newLine = false)
}
And all what's inside like
wasiPrintImpl
and
wasiRawFdWrite
? Even
WasiError
is internal.
i
Well, we do not recommend use internal API in your program. If you need just error printing there is not much code so you can just copy it.