> The default should be to return the size /without/ borders, > and have a default-parameter enum to get the size with borders.
There are very few designs where default parameters are better than multiple functions. This isn't one.
auto sizeWithoutBorders = geometry.size(); auto sizeWithBorders = geometry.sizeWithBorders(); // not geometry.size(::compiz::geometry::WithBorders);
« Back to merge proposal
> The default should be to return the size /without/ borders,
> and have a default-parameter enum to get the size with borders.
There are very few designs where default parameters are better than multiple functions. This isn't one.
auto sizeWithoutBorders = geometry.size(); sizeWithBorders (); // not geometry. size(:: compiz: :geometry: :WithBorders) ;
auto sizeWithBorders = geometry.