core
core copied to clipboard
Proposal: rename Bytes::to_string to Bytes::to_string_unchecked
- Add a new method
Bytes::to_string_uncheckedthat behaves the same as the currentBytes::to_string. - Change the behavior of
Bytes::to_stringto output bytes literal or bytes array.
Related: https://github.com/moonbitlang/core/pull/257
We should add bytes literal syntax,e.g, b"xx.." and use make Byte::to_string confirm to the format
Closed by #873