[swift-evolution] SE-0105: Removing Where Clauses from For-In Loops

William Jon Shipley wjs at delicious-monster.com
Fri Jun 24 17:38:38 CDT 2016


> On Jun 24, 2016, at 3:00 PM, Haravikk via swift-evolution <swift-evolution at swift.org> wrote:
> 	 for colinearSegment in remainingSegments where colinearSegment.angle.isEssentially(angle: segment.angle) { // Is parameter name even necessary?

My terminology sucks because I don’t remember math terms but basically I’m trying to distinguish between angles of rays (0..<360º) and angles of lines (0..<180º). Because, like, if you have a line at 45º and another at 225º, well, they’re either collinear or parallel.

So I call the variants “rayAngle:” and “infiniteLineAngle:”. Not my finest hour.

-W
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160624/a7182772/attachment.html>


More information about the swift-evolution mailing list