top | item 23250237

(no title)

maxton | 5 years ago

The second argument is a Rectangle, which means you'd be repeating 'Rectangle' twice in one line with the second style.

discuss

order

Infinitesimus|5 years ago

That'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)

surye|5 years ago

I think this clarification proves his point, and I tend to agree that I prefer the more explicit, verbose style.