Open sdancer opened 9 months ago
Thank you.
What should the generated code look like instead?
<Name@1/binary-utf16> or similar also erlang doesn't automatically convert them, since on gleam we use strings rather than binaries, a good solution would be the compiler backend to do the conversion by calling unicode:characters_to_binary(Data, InEncoding, OutEncoding) similarly might want to fetch the right implementation on javascript side or at least error
Thanks for the clarification!
I think we should error in this case, like Erlang does.
erlang errors after trying to serialize it from utf8, to preserve that behavior can just emit the utf-16 and let erlang error
produces erlang
added extra context just in case