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

Re: [Vala] """Verbatim strings""" vs. "string" "literal" "concatenation"



Hi, but what is a verbatim string?

is it something similiar to 
#define QUOTE(x) #x
?

Yu
On Tue, 2008-06-03 at 13:02 +0200, Frederik wrote:
> Hi,
> 
> 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" (+) "".
> 
> The C# syntax is @"verbatim string", but I don't know if that would
> conflict with the Vala syntax for using reserved keywords.
> 
> What do you think?
> 
> Frederik
> _______________________________________________
> Vala-list mailing list
> Vala-list gnome org
> http://mail.gnome.org/mailman/listinfo/vala-list



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