I am new to REBOL but not to programming and was surprised to find that the
open brace is not an escape character in brace delimited strings.

>> str: "can mix } and { in any way { in quotes"
== "can mix } and { in any way { in quotes"
works as I expect.

>> str: {can nest braces {like so {to any depth}} in braced strings}
== {can nest braces {like so {to any depth}} in braced strings}
works as expected.

>> {can escape close brace ^} in braced string}
== "can escape close brace } in braced string"
works as expected.

>> {can't escape open brace ^{ in braced string}
{    but must close it}
** Syntax Error: Invalid string -- }.
** Where: (line 2) but must close it}
is not what I expected.

This seems very odd to me. Since double quotes can be escaped in quoted
strings, it would seen that both open and close braces should be able to be
escaped in braced strings.

I initially assumed that the documentation was in error, but clearly not.

What am I missing?

Garold (Gary) L. Johnson
DYNAMIC Alternatives
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
562 802 1639

Reply via email to