miniblog.
← Back to all posts
Wilfred Hughes
Dec 19, 2022 at 04:48
One nice property of key-value punning is how it reduces the risk of accidental reordering. Point { x, y, z } is less verbose than Point { x: x, y: y, z: z } and less error-prone than Point(x, y, z).