{"action":"created","issue":{"url":"https://api.github.com/repos/sebcrozet/nalgebra/issues/201","repository_url":"https://api.github.com/repos/sebcrozet/nalgebra","labels_url":"https://api.github.com/repos/sebcrozet/nalgebra/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/sebcrozet/nalgebra/issues/201/comments","events_url":"https://api.github.com/repos/sebcrozet/nalgebra/issues/201/events","html_url":"https://github.com/sebcrozet/nalgebra/issues/201","id":174194809,"number":201,"title":"impl Default for types","user":{"login":"purpleposeidon","id":150333,"avatar_url":"https://avatars.githubusercontent.com/u/150333?v=3","gravatar_id":"","url":"https://api.github.com/users/purpleposeidon","html_url":"https://github.com/purpleposeidon","followers_url":"https://api.github.com/users/purpleposeidon/followers","following_url":"https://api.github.com/users/purpleposeidon/following{/other_user}","gists_url":"https://api.github.com/users/purpleposeidon/gists{/gist_id}","starred_url":"https://api.github.com/users/purpleposeidon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purpleposeidon/subscriptions","organizations_url":"https://api.github.com/users/purpleposeidon/orgs","repos_url":"https://api.github.com/users/purpleposeidon/repos","events_url":"https://api.github.com/users/purpleposeidon/events{/privacy}","received_events_url":"https://api.github.com/users/purpleposeidon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-31T06:29:28Z","updated_at":"2016-08-31T20:52:13Z","closed_at":null,"body":"Useful for generic programming. In particular I need them for Quaternion & UnitQuaternion; returning Self::one() is the obvious implementation there."},"comment":{"url":"https://api.github.com/repos/sebcrozet/nalgebra/issues/comments/243897566","html_url":"https://github.com/sebcrozet/nalgebra/issues/201#issuecomment-243897566","issue_url":"https://api.github.com/repos/sebcrozet/nalgebra/issues/201","id":243897566,"user":{"login":"sebcrozet","id":1734958,"avatar_url":"https://avatars.githubusercontent.com/u/1734958?v=3","gravatar_id":"","url":"https://api.github.com/users/sebcrozet","html_url":"https://github.com/sebcrozet","followers_url":"https://api.github.com/users/sebcrozet/followers","following_url":"https://api.github.com/users/sebcrozet/following{/other_user}","gists_url":"https://api.github.com/users/sebcrozet/gists{/gist_id}","starred_url":"https://api.github.com/users/sebcrozet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebcrozet/subscriptions","organizations_url":"https://api.github.com/users/sebcrozet/orgs","repos_url":"https://api.github.com/users/sebcrozet/repos","events_url":"https://api.github.com/users/sebcrozet/events{/privacy}","received_events_url":"https://api.github.com/users/sebcrozet/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T20:52:13Z","updated_at":"2016-08-31T20:52:13Z","body":"I would be interested to know more about your use-case. In particular, why can't your generic code require the `One` trait instead of `Default`?\r\n\r\nI agree that `Self::one()` would be the obvious implementation for unit quaternions, rotations, similarities, and isometries. On the other hand, it is **not** the obvious choice for quaternions, raw matrices and vectors: `Self::zero()`, the additive neutral element, could also be chosen."}}
{"actor":{"display_login":"sebcrozet"}}