[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Feature proposal: \x## notation in strings
- From: Benjamin Tolputt <btolputt@...>
- Date: Tue, 10 Mar 2009 13:19:36 +1100
Luiz Henrique de Figueiredo wrote:
> To avoid bloat and also because the perfect place for such a feature is
> in a text-encoding library (which would also handle base64, ascii85, etc.)
> Also, it is trivial to write it in Lua:
>
It may be trivial, but hexadecimal formats are pretty much a united
feature across all programming languages with escape sequences in
strings. I don't use Lua for binary work (primarily because I use Lua at
a higher level), but I am still quite surprised it does not support the
hexadecimal escape in some fashion (and would have raised the same issue
when I encountered it).
The other encodings you mentioned (base64, ascii85) are used in such a
small percentage of applications compared to hex escapes as to make that
comparison somewhat contrived (especially given the fact there is a
decimal number escape).
--
Regards,
Benjamin Tolputt
Analyst Programmer