{"action":"opened","issue":{"url":"https://api.github.com/repos/mercmobily/simpleDeclare/issues/6","labels_url":"https://api.github.com/repos/mercmobily/simpleDeclare/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/mercmobily/simpleDeclare/issues/6/comments","events_url":"https://api.github.com/repos/mercmobily/simpleDeclare/issues/6/events","html_url":"https://github.com/mercmobily/simpleDeclare/issues/6","id":55563351,"number":6,"title":"Async constructors?","user":{"login":"mercmobily","id":2128734,"avatar_url":"https://avatars.githubusercontent.com/u/2128734?v=3","gravatar_id":"","url":"https://api.github.com/users/mercmobily","html_url":"https://github.com/mercmobily","followers_url":"https://api.github.com/users/mercmobily/followers","following_url":"https://api.github.com/users/mercmobily/following{/other_user}","gists_url":"https://api.github.com/users/mercmobily/gists{/gist_id}","starred_url":"https://api.github.com/users/mercmobily/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mercmobily/subscriptions","organizations_url":"https://api.github.com/users/mercmobily/orgs","repos_url":"https://api.github.com/users/mercmobily/repos","events_url":"https://api.github.com/users/mercmobily/events{/privacy}","received_events_url":"https://api.github.com/users/mercmobily/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-27T01:28:28Z","updated_at":"2015-01-27T01:28:28Z","closed_at":null,"body":"This might not be needed by most (if anybody), but since SimpleDeclare is async-friendly, it would be nice to be able to define the constructor as an async function:\r\n\r\n    constructorAsync: function( p1, p2, cb ){\r\n    }\r\n\r\nHowever, there are some problems/doubts:\r\n\r\n* How would it go down with creating new objects? something like `c = new C( function( err, res ) { ...} )` but this is _terribly_ ugly!\r\n* The automatic parent calling would become \"interesting\" so to speak\r\n\r\nMaybe constructors are not really meant to be asynchronous, really. But, this is just a thought."}}