print "Values:" (function(data)
__bsConsequent = data.values
if __bsConsequent <> invalid then
return __bsConsequent
else
return []
end if
end function)(data)
this transpilation causes a run-time error:
Function Call Operator ( ) attempted on non-function. (runtime error &he0)
however, if it is preceded with a semi-colon, then it does not have any problem.
print "Values:"; data.values ?? []
gives:
print "Values:"; (function(data)
__bsConsequent = data.values
if __bsConsequent <> invalid then
return __bsConsequent
else
return []
end if
end function)(data)
If any self-invoking function in transpilation (eg. null-coalescing, ternary, etc.) is in a print statement.. it's probably best to precede it with a semi-colon.
Consider:
transpiles to:
this transpilation causes a run-time error:
Function Call Operator ( ) attempted on non-function. (runtime error &he0)
however, if it is preceded with a semi-colon, then it does not have any problem.
gives:
If any self-invoking function in transpilation (eg. null-coalescing, ternary, etc.) is in a print statement.. it's probably best to precede it with a semi-colon.