lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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