savi-lang / savi

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

Add `Integer.Format.PrintableASCII`. #384

Closed jemc closed 1 year ago

jemc commented 1 year ago

This formats the given integer (treated as a Unicode codepoint) as either a printable ASCII character (if it is one), or as a valid string escape sequence (made of printable ASCII characters) that would encode that particular Unicode codepoint in a Savi string literal.