Comment

Comment by woodrowbarlow

> graphics.DrawRectangle(RedBrush, new(3, 5, 2, 2))

> graphics.DrawRectangle(RedBrush, new Point(3, 5, 2, 2))

what's the advantage of the first example? i prefer the second, because i don't have to look at the definition of DrawRectangle in order to know that the second argument is a 'Point' object.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton