{"action":"created","issue":{"url":"https://api.github.com/repos/compute-io/add/issues/1","labels_url":"https://api.github.com/repos/compute-io/add/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/compute-io/add/issues/1/comments","events_url":"https://api.github.com/repos/compute-io/add/issues/1/events","html_url":"https://github.com/compute-io/add/pull/1","id":76530471,"number":1,"title":"Update according to TODO","user":{"login":"kgryte","id":2643044,"avatar_url":"https://avatars.githubusercontent.com/u/2643044?v=3","gravatar_id":"","url":"https://api.github.com/users/kgryte","html_url":"https://github.com/kgryte","followers_url":"https://api.github.com/users/kgryte/followers","following_url":"https://api.github.com/users/kgryte/following{/other_user}","gists_url":"https://api.github.com/users/kgryte/gists{/gist_id}","starred_url":"https://api.github.com/users/kgryte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgryte/subscriptions","organizations_url":"https://api.github.com/users/kgryte/orgs","repos_url":"https://api.github.com/users/kgryte/repos","events_url":"https://api.github.com/users/kgryte/events{/privacy}","received_events_url":"https://api.github.com/users/kgryte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Planeshifter","id":1913638,"avatar_url":"https://avatars.githubusercontent.com/u/1913638?v=3","gravatar_id":"","url":"https://api.github.com/users/Planeshifter","html_url":"https://github.com/Planeshifter","followers_url":"https://api.github.com/users/Planeshifter/followers","following_url":"https://api.github.com/users/Planeshifter/following{/other_user}","gists_url":"https://api.github.com/users/Planeshifter/gists{/gist_id}","starred_url":"https://api.github.com/users/Planeshifter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Planeshifter/subscriptions","organizations_url":"https://api.github.com/users/Planeshifter/orgs","repos_url":"https://api.github.com/users/Planeshifter/repos","events_url":"https://api.github.com/users/Planeshifter/events{/privacy}","received_events_url":"https://api.github.com/users/Planeshifter/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-05-14T23:55:05Z","updated_at":"2015-05-14T23:59:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/compute-io/add/pulls/1","html_url":"https://github.com/compute-io/add/pull/1","diff_url":"https://github.com/compute-io/add/pull/1.diff","patch_url":"https://github.com/compute-io/add/pull/1.patch"},"body":"- copy option\r\n- accessor option\r\n- Makefile\r\n- README\r\n- validation dependencies\r\n- dev dependencies\r\n- remove preamble\r\n- update license info\r\n- tests for code pathways\r\n- dotfiles\r\n\r\nResolves compute-io/todo#40\r\n\r\n__NOTE__: breaking change. `add` no longer mutates by default. This behavior must be explicitly set using the `copy` option. While memory management is important, three factors contribute to turning __off__ mutation by default:\r\n\r\n1. *principle of least surprise*: mutation is a source of bugs, especially when multiple operations may operate on the same data store. Reasoning about mutable objects as they travel through a program with black boxes (functions mutating state) is more complex.\r\n2. consideration that, for object `arrays`, mutation has a side-effect that object elements are eliminated and replaced with numeric results. For more complex object `arrays`, this is unlikely to be desired. Setting `{'copy':true}` for each invocation is probably more than should be asked.\r\n3. readability. If mutation is desired, having the invocation signature `add( x, y, {'copy': false})` means that the code is explicit in describing the behavior. If I understand that the `copy` option pertains to mutation, then I derive meaning from the signature. "},"comment":{"url":"https://api.github.com/repos/compute-io/add/issues/comments/102204054","html_url":"https://github.com/compute-io/add/pull/1#issuecomment-102204054","issue_url":"https://api.github.com/repos/compute-io/add/issues/1","id":102204054,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T23:59:08Z","updated_at":"2015-05-14T23:59:08Z","body":"\n[![Coverage Status](https://coveralls.io/builds/2568199/badge)](https://coveralls.io/builds/2568199)\n\nCoverage remained the same at 100.0% when pulling **93d3355cccc5cba000cdf1b0959578a29b2217bb on develop** into **3ede40761e931ff6a058967df7541e92dc413964 on master**.\n"}}