savi-lang / savi

A fast language for programmers who are passionate about their craft.
BSD 3-Clause "New" or "Revised" License
154 stars 12 forks source link

Add `String.format.literal` and update `Inspect` to use it. #430

Closed jemc closed 1 year ago

jemc commented 1 year ago

Now inspected strings will show escape sequences for bytes that are outside ASCII range or are not easily read when printed.

Prior to this commit, inspecting a string would copy the bytes verbatim from the string into the output of the inspection.