{for $name in $names}
{call .helloName}
{param name: $name /}
{/call}
{if not isLast($name)}
<br> // break after every line except the last
{/if}
{/for}
Swift code generation was derived from the Python compiler that enforces inlining output appends. First this looks pretty awful, second it's probably inefficient.
Let's rewrite the compiler to generate a more readable code like
output.append(helloName(["name": nameData30], ijData).description)
if nameIndex30 != nameList30.endIndex {
output.append("<br>")
}
The following template code
compiles to
Swift code generation was derived from the Python compiler that enforces inlining output appends. First this looks pretty awful, second it's probably inefficient. Let's rewrite the compiler to generate a more readable code like