5 ms·
The second argument is a Rectangle, which means you'd be repeating 'Rectangle' twice in one line with the second style.
by maxton 6y ago
The second argument is a Rectangle, which means you'd be repeating 'Rectangle' twice in one line with the second style.
- surye 6y agoI think this clarification proves his point, and I tend to agree that I prefer the more explicit, verbose style.
- Infinitesimus 6y agoThat's not obvious from the function name though. The function definition could easily be `DrawRectangle(SolidColor, CornerRadii, Point)` and you wouldn't know by seeing a bunch of `DrawRectangle(RedBrush, new(1,2,4,5), Point(4,5,2,2))` would you? It's still nice to have the option in cases where it improves readability (maybe with named args or sth)
- deleted 6y ago[deleted]