[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Perl-like strings...?
- From: John Belmonte <john@...>
- Date: Mon, 09 Oct 2006 06:52:27 -0400
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