lua-users home
lua-l archive

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

在 2015/10/9 6:00, Soni L. 写道:
I sometimes don't want to escape strings (so that the human reader can read them literally instead of trying to figure out the escapes), and adding spaces around the long strings just doesn't look as good. t[[[]]] is currently a syntax error and t[[===[]===]] is currently a function call.

if you were a C++ guy, you'd be very familiar with code such as (note the spaces between the '>'s):

   std::vector<std::pair<std::string, std::list<int> > >  my_array;

the spaces are needed to help the lexer's disambiguation.

the nerdy Peng / 书呆彭 / Sent from Thunderbird