moonbitlang / core

MoonBit's Core library

Home Page:https://moonbitlang.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

lijunchen opened this issue · 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: #257

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