{"action":"created","issue":{"url":"https://api.github.com/repos/robb/Cartography/issues/77","labels_url":"https://api.github.com/repos/robb/Cartography/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/robb/Cartography/issues/77/comments","events_url":"https://api.github.com/repos/robb/Cartography/issues/77/events","html_url":"https://github.com/robb/Cartography/issues/77","id":57268578,"number":77,"title":"A way to chain ==","user":{"login":"mergesort","id":716513,"avatar_url":"https://avatars.githubusercontent.com/u/716513?v=3","gravatar_id":"","url":"https://api.github.com/users/mergesort","html_url":"https://github.com/mergesort","followers_url":"https://api.github.com/users/mergesort/followers","following_url":"https://api.github.com/users/mergesort/following{/other_user}","gists_url":"https://api.github.com/users/mergesort/gists{/gist_id}","starred_url":"https://api.github.com/users/mergesort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mergesort/subscriptions","organizations_url":"https://api.github.com/users/mergesort/orgs","repos_url":"https://api.github.com/users/mergesort/repos","events_url":"https://api.github.com/users/mergesort/events{/privacy}","received_events_url":"https://api.github.com/users/mergesort/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-11T02:24:08Z","updated_at":"2015-02-11T17:10:53Z","closed_at":null,"body":"If I have a few views that are all going to have the same property, for example\r\n```\r\nbutton1.top == superview.top\r\nbutton2.top == superview.top\r\n```\r\n\r\nIt would be great to be able to chain those operations and say\r\n\r\n```\r\nbutton1.top == button2.top == superview.top\r\n```\r\nCurrently it produces an error `Non-associative operator is adjacent to operator of same precedence`. I'm not sure if this is possible with Swift, but it would help me make the code a bit more streamlined."},"comment":{"url":"https://api.github.com/repos/robb/Cartography/issues/comments/73920592","html_url":"https://github.com/robb/Cartography/issues/77#issuecomment-73920592","issue_url":"https://api.github.com/repos/robb/Cartography/issues/77","id":73920592,"user":{"login":"mergesort","id":716513,"avatar_url":"https://avatars.githubusercontent.com/u/716513?v=3","gravatar_id":"","url":"https://api.github.com/users/mergesort","html_url":"https://github.com/mergesort","followers_url":"https://api.github.com/users/mergesort/followers","following_url":"https://api.github.com/users/mergesort/following{/other_user}","gists_url":"https://api.github.com/users/mergesort/gists{/gist_id}","starred_url":"https://api.github.com/users/mergesort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mergesort/subscriptions","organizations_url":"https://api.github.com/users/mergesort/orgs","repos_url":"https://api.github.com/users/mergesort/repos","events_url":"https://api.github.com/users/mergesort/events{/privacy}","received_events_url":"https://api.github.com/users/mergesort/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T17:10:53Z","updated_at":"2015-02-11T17:10:53Z","body":"Fair points. I think https://github.com/robb/Cartography/issues/77#issuecomment-73859870 might be too specific, but is closest to what I'd envision. There could be a function that takes in a set of views, and an edge/dimension/size.\r\n\r\n```\r\nlayout(view1, view2, view3) {\r\n    equal([view1, view2, view3], Edge.top) // or Dimension or size\r\n}\r\n```\r\n\r\n"}}