SVG is still a stupid format. Who wants to send image data through XML? It would be like sending a raster image through a big JSON array.
SVGs aren't image data. They're a set of instructions for recreating image data using a structured language. XML is very good for data like that.
However I agree with saagarjha that it is very easy to write code to emit SVG, which is nice.
But I think he's right - it would be nice if there was a "proper" binary vector format that was widely supported.
print(f"""<rect x="{x}" y="{y}" width="{w}" height="{h}"/>""")
I find this eminently easier than working with a binary format.Think about how you write Protobuf files for example.