Lets say we have this code: 
    
    
    const msg = "JS Backend"
    for _ in 0..10: echo msg
    
    
    Run

The loop is converted to while-do block, and the echo is passed trough 
    
    
    rawEcho(makeNimstrLit("JS Backend"));
    
    function rawEcho() {
                          var buf = "";
          for (var i = 0; i < arguments.length; ++i) {
            buf += toJSStr(arguments[i]);
          }
          console.log(buf);
    
    
    Run

How hard is to change the generator to convert the _echo msg_ into 
_console.log(msg);_ directly?

Reply via email to