lua-users home
lua-l archive

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


Is Lua's backslash behaviour future-proof? I don't think so.

print('\x')  -->  x  enhance the Lua escape sequences with an \x
                     in the future possible corrupts existing code

print('\x')  --> \x  this would be a little bit better but also
                     not future-proof

print('\x')  -->     print nothing is the solution I think
                     - the programmer/user can see the effect today
                       and simply replace the \x with an x
                     - Lua can implement further escape-sequences
                       in the future without corrupt existing programs


--
Markus