lua-users home
lua-l archive

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


askok@dnainternet.net wrote:
> Perl has a STRONG ease in the output of things, by allowing variables to
> be included in the string itself. This not only is shorter, but most of
> all much more readable than a lot of ..'s. Could be introduced in Lua as
> syntax sugar, using """ and [[[ operations.

... or this can be solved without changing Lua.  (By the way, I believe
Perl also allows function calls and arbitrary expressions inside
strings, which you do not address.)

  http://lua-users.org/wiki/TextTemplate
  http://lua-users.org/wiki/StringInterpolation

--John