Here we go again.

How do we usually go about binding "static" js function calls? I'm not sure if 
that's the correct term for Nim, but maybe it gives the idea. A case would be, 
if we follow the same Vector example, that the add function has a "static" 
overload that returns a new Vector instead of modifying the caller.
    
    
    [...]
    global.Vector.add = function(v1, v2) {
      //implementation
      return result;
    }
    [...]
    
    let sumVec = global.Vector.add(v1, v2);
    

How is this usually approached?

Reply via email to