[swift-evolution] [Proposal]: Rectangles and other common structures.
charles at charlesism.com
Thu Jan 7 01:38:35 CST 2016
> I can certainly think of situations where I might want integer based
rectangles, sizes, and points.
I'm quite biased this week, because I spent *yesterday* writing a file for
my project with "IntRect" "IntPoint" "IntSize" ad nauseam. It's not
something I'm very thrilled to have as part of my Audio app - a lone file
of geometric structs that aready exist if you use CGFloats, where I don't
get the full implementation, etc. And previously, I've written code that I
needed land on whole numbers, and the extra concern about finding the right
options in Cocoa to do so just stressed me out.
On Wed, Jan 6, 2016 at 11:24 PM, John Randolph <jcr at icloud.com> wrote:
> On Jan 6, 2016, at 9:51 PM, Charles Constant <charles at charlesism.com>
> I support this, not because I find NS- and CG- geometric structs
> confusing. I support it because I'm hoping Swift library versions would be
> generic. I would be very glad to see us get *Rect<Double>* or *Point<Int>* as
> part of the standard library.
> I like that. I can certainly think of situations where I might want
> integer based rectangles, sizes, and points.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution