Open michallepicki opened 4 months ago
Two examples, I'm told first one should result in a run-time crash:
import gleam/io pub fn main() { let assert <<"\n":utf8, tail>> = <<"\ngoodbye":utf8>> io.debug(tail) }
and this one I would expect to print the bytes of goodbye:
goodbye
import gleam/io pub fn main() { let assert <<"\n":utf8, tail:bytes>> = <<"\ngoodbye":utf8>> io.debug(tail) }
edit: or maybe actually both should be compiler errors about the utf8 option on js target
utf8
Thank you
Two examples, I'm told first one should result in a run-time crash:
and this one I would expect to print the bytes of
goodbye
:edit: or maybe actually both should be compiler errors about the
utf8
option on js target