{"action":"created","issue":{"url":"https://api.github.com/repos/inf3rno/dataflower/issues/67","labels_url":"https://api.github.com/repos/inf3rno/dataflower/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/inf3rno/dataflower/issues/67/comments","events_url":"https://api.github.com/repos/inf3rno/dataflower/issues/67/events","html_url":"https://github.com/inf3rno/dataflower/issues/67","id":60239461,"number":67,"title":"deepCopy and deepClone","user":{"login":"inf3rno","id":408911,"avatar_url":"https://avatars.githubusercontent.com/u/408911?v=3","gravatar_id":"","url":"https://api.github.com/users/inf3rno","html_url":"https://github.com/inf3rno","followers_url":"https://api.github.com/users/inf3rno/followers","following_url":"https://api.github.com/users/inf3rno/following{/other_user}","gists_url":"https://api.github.com/users/inf3rno/gists{/gist_id}","starred_url":"https://api.github.com/users/inf3rno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inf3rno/subscriptions","organizations_url":"https://api.github.com/users/inf3rno/orgs","repos_url":"https://api.github.com/users/inf3rno/repos","events_url":"https://api.github.com/users/inf3rno/events{/privacy}","received_events_url":"https://api.github.com/users/inf3rno/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/inf3rno/dataflower/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"inf3rno","id":408911,"avatar_url":"https://avatars.githubusercontent.com/u/408911?v=3","gravatar_id":"","url":"https://api.github.com/users/inf3rno","html_url":"https://github.com/inf3rno","followers_url":"https://api.github.com/users/inf3rno/followers","following_url":"https://api.github.com/users/inf3rno/following{/other_user}","gists_url":"https://api.github.com/users/inf3rno/gists{/gist_id}","starred_url":"https://api.github.com/users/inf3rno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inf3rno/subscriptions","organizations_url":"https://api.github.com/users/inf3rno/orgs","repos_url":"https://api.github.com/users/inf3rno/repos","events_url":"https://api.github.com/users/inf3rno/events{/privacy}","received_events_url":"https://api.github.com/users/inf3rno/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/inf3rno/dataflower/milestones/4","html_url":"https://github.com/inf3rno/dataflower/milestones/0.7%20-%20Error,%20Base,%20Components","labels_url":"https://api.github.com/repos/inf3rno/dataflower/milestones/4/labels","id":975070,"number":4,"title":"0.7 - Error, Base, Components","description":"Implementing Error, Base and Components","creator":{"login":"inf3rno","id":408911,"avatar_url":"https://avatars.githubusercontent.com/u/408911?v=3","gravatar_id":"","url":"https://api.github.com/users/inf3rno","html_url":"https://github.com/inf3rno","followers_url":"https://api.github.com/users/inf3rno/followers","following_url":"https://api.github.com/users/inf3rno/following{/other_user}","gists_url":"https://api.github.com/users/inf3rno/gists{/gist_id}","starred_url":"https://api.github.com/users/inf3rno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inf3rno/subscriptions","organizations_url":"https://api.github.com/users/inf3rno/orgs","repos_url":"https://api.github.com/users/inf3rno/repos","events_url":"https://api.github.com/users/inf3rno/events{/privacy}","received_events_url":"https://api.github.com/users/inf3rno/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":21,"state":"open","created_at":"2015-02-11T10:51:13Z","updated_at":"2015-03-09T17:00:05Z","due_on":"2015-03-07T23:00:00Z","closed_at":null},"comments":49,"created_at":"2015-03-08T03:44:40Z","updated_at":"2015-03-10T22:12:46Z","closed_at":null,"body":"```js\r\n            deepCopy({\r\n                x: function (subject, source){\r\n                    return deepCopy({y: shallowCopy}, subject, source);\r\n                }\r\n            }, subject, source1, source2, ...)\r\n```\r\nor\r\n\r\n```js\r\n            deepCopy({x: {y: shallowCopy}}, subject, source1, source2, ...)\r\n```"},"comment":{"url":"https://api.github.com/repos/inf3rno/dataflower/issues/comments/78159957","html_url":"https://github.com/inf3rno/dataflower/issues/67#issuecomment-78159957","issue_url":"https://api.github.com/repos/inf3rno/dataflower/issues/67","id":78159957,"user":{"login":"inf3rno","id":408911,"avatar_url":"https://avatars.githubusercontent.com/u/408911?v=3","gravatar_id":"","url":"https://api.github.com/users/inf3rno","html_url":"https://github.com/inf3rno","followers_url":"https://api.github.com/users/inf3rno/followers","following_url":"https://api.github.com/users/inf3rno/following{/other_user}","gists_url":"https://api.github.com/users/inf3rno/gists{/gist_id}","starred_url":"https://api.github.com/users/inf3rno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inf3rno/subscriptions","organizations_url":"https://api.github.com/users/inf3rno/orgs","repos_url":"https://api.github.com/users/inf3rno/repos","events_url":"https://api.github.com/users/inf3rno/events{/privacy}","received_events_url":"https://api.github.com/users/inf3rno/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T22:12:45Z","updated_at":"2015-03-10T22:12:45Z","body":"so the \r\n\r\n```js\r\n{frames:[f1, f2]}\r\n```\r\nis equivalent to the\r\n\r\n```js\r\n{frames:{@once: f2, @each:f1}}\r\n```\r\nhmm maybe I should reverse the order.\r\n\r\n```js\r\n{frames:{@once: f1, @each:f2}}\r\n```\r\nwhat if only a single function given?\r\n\r\n```js\r\n{frames: f} // @once\r\n{frames: [f]} // @each\r\n{frames: [f, f2]} //?\r\n```\r\n\r\nI think the `@once` before `@each` is the better order. if we start to write the code which uses both, it is logical to start with the `@once` and write the `@each` only after that.\r\n\r\n"}}