As others have remarked Xara almost has the required functionality in place. If I drag the eraser across my shapes and lines it leaves a white shape in it's wake. When I let go that shape is essentially subtracted from any editable shapes and lines it crosses.