Closed clembu closed 3 months ago
That's expected, on the erlang target strings are represented as bit arrays, so whenever io.debug
/string.inspect
runs into that its best bet is to treat it as a String
as it cannot know if it was a string or bit array in Gleam code.
If you need to print debug a bit array you could use the bit_array.inspect
function.
Thank you
The problem
the above line outputs
<<3>>
in the language tour in the browser, but outputs a quoted empty string""
in the terminal when running on erlang withgleam run
System information