On Mon, 23 Dec 2019, Sven Schreiber wrote:
Hi,
this is on the Dec 14th snapshot, haven't tested on newer release, sorry.
<hansl>
string s2 = sprintf("\"hey\"")
string snull = 1 ? s2 : "null"
print snull # "hey", as expected
# short form with anonymous sprintf
string snull = 1 ? sprintf("\"hey\"") : "null" # error
print snull
</hansl>
Hmm, it turns out we were special-casing the interpretation of
backslash+double-quote in the context of the ternary query operator.
On disabling that special treatment your example works fine. Since I
can't think of any good reason to maintain the special case I've now
disabled it in git.
I haven't yet run all my regression tests to verify that this change
doesn't break any old formulations but I'll do so before long.
Allin