Would be nice if Nim supported object destructors:
    
    
    func sumPoints((x1, y1), (x2, y2): Point2D): Point2D = (x1 + x2, y1 + y2)
    
    
    Run

Reply via email to