Subject | RE: [Firebird-Architect] Literal strings and quotes |
---|---|
Author | Claudio Valderrama C. |
Post date | 2009-05-24T12:08:25Z |
> -----Original Message-----Until now, I have to double-escape single quotes. How many sequences would I
> From: Firebird-Architect@yahoogroups.com
> [mailto:Firebird-Architect@yahoogroups.com] On Behalf Of Helen Borrie
> Sent: Domingo, 24 de Mayo de 2009 7:15
>
> At 08:41 PM 24/05/2009, Vlad Khorsun wrote:
> > What if i need this sequence inside my literal ? What if
> literal is
> >user-defined
> >and we can't prevent user from entering this sequence ?
>
> Isn't it obvious? You escape the curly with another curly,
> of course!! :-)
>
> {{ Helen }}
have to clean up? AFAIU, there are several possible sequences to mark the
beginning of a special literal string:
>> When the opening character is "[", "{", "(" or "<", thePerfect for a programming nightmare.
>> closing one is
>> respectively "]", "}", ")" and ">". In other cases, the opening and
>> closing shall be identical.
And what if an arbitrary string matches by accident the opening character?
It probably won't have a corresponding closing character (since it was only
a coincidence) and in this case, I see the possibility of rejecting the
string as invalid or ignoring the problem by assuming it's not a escape
sequence (but not warning the user that really wanted the literal string and
forgot to terminate it properly).
> p.s. Somehow I don't quite see this getting into the standard....I see this thing being put in the graveyard for peace for mind.
C.