Operators would work like anything else, but it might be ugly:
    
    
    proc `+`(result: var T; x, y: T) = ...
    
    `+`(res, a, b) # optimized call; store into 'res'
    
    echo x + b # uses temporary when used as expression
    

Reply via email to