Re: [Vala] """Verbatim strings""" vs. "string" "literal" "concatenation"
- From: Jürg Billeter <j bitron ch>
- To: Frederik <scumm_fredo gmx net>
- Cc: vala-list gnome org
- Subject: Re: [Vala] """Verbatim strings""" vs. "string" "literal" "concatenation"
- Date: Tue, 03 Jun 2008 17:52:48 +0200
Hi Frederik,
On Tue, 2008-06-03 at 13:02 +0200, Frederik wrote:
I have seen that the current Vala SVN trunk now supports verbatim
strings. That's a nice feature, but I think that the chosen triple
double-quote syntax could conflict with another feature I would love to
see in Vala someday: string literal concatenation. This would allow more
beautiful syntax formatting of long or multi-line strings, for example:
string my_string = "This is the first half of the string,\n"
"this is the second half";
But in that case """verbatim string""" would be interpreted as
"" (+) "verbatim string" (+) "".
This won't cause any issues. Three consecutive " are considered a single
token and will never be interpreted as an empty string followed by
another string. We should certainly add string literal concatenation,
it's just not implemented yet.
Jürg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]