Multi-return and multi-assignment in TIScript.

As we know parameters of functions are passed by value in languages like TIScript and JavaScript. Inside the function we can modify paramaters and their new values will not be seen outside the function. Let’s say we need to implement function expand(rect, dx, dy) : rect that should increase dimensions of the rectangle. If the…

Stringizer functions in TIScript

Motivation. Tasks of defining string expressions and textual fragments in script code are pretty common. Typical example in JS/browser is: someelement.innerHTML = "<span style=\"color:#ffffff\">" + somestuff + "</span>"; As you see this could be quite noisy and complex to be comprehensible by human. Various scripting languages are trying to reduce syntax noise in various ways….