core icon indicating copy to clipboard operation
core copied to clipboard

Proposal: rename Bytes::to_string to Bytes::to_string_unchecked

Open lijunchen opened this issue 1 year ago • 1 comments

  • Add a new method Bytes::to_string_unchecked that behaves the same as the current Bytes::to_string.
  • Change the behavior of Bytes::to_string to output bytes literal or bytes array.

Related: https://github.com/moonbitlang/core/pull/257

lijunchen avatar Apr 19 '24 08:04 lijunchen

We should add bytes literal syntax,e.g, b"xx.." and use make Byte::to_string confirm to the format

bobzhang avatar Apr 21 '24 06:04 bobzhang

Closed by #873

peter-jerry-ye avatar Apr 18 '25 05:04 peter-jerry-ye