Proposal: rename Bytes::to_string to Bytes::to_string_unchecked
lijunchen opened this issue · comments
Li Junchen commented
- Add a new method
Bytes::to_string_unchecked
that behaves the same as the currentBytes::to_string
. - Change the behavior of
Bytes::to_string
to output bytes literal or bytes array.
Related: #257
Hongbo Zhang commented
We should add bytes literal syntax,e.g, b"xx.." and use make Byte::to_string confirm to the format