We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Thank you
Sorry, something went wrong.
No branches or pull requests
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 targetThe text was updated successfully, but these errors were encountered: