{"action":"created","issue":{"url":"https://api.github.com/repos/tc39/proposal-private-fields/issues/37","repository_url":"https://api.github.com/repos/tc39/proposal-private-fields","labels_url":"https://api.github.com/repos/tc39/proposal-private-fields/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/tc39/proposal-private-fields/issues/37/comments","events_url":"https://api.github.com/repos/tc39/proposal-private-fields/issues/37/events","html_url":"https://github.com/tc39/proposal-private-fields/issues/37","id":166998499,"number":37,"title":"private methods","user":{"login":"graingert","id":413772,"avatar_url":"https://avatars.githubusercontent.com/u/413772?v=3","gravatar_id":"","url":"https://api.github.com/users/graingert","html_url":"https://github.com/graingert","followers_url":"https://api.github.com/users/graingert/followers","following_url":"https://api.github.com/users/graingert/following{/other_user}","gists_url":"https://api.github.com/users/graingert/gists{/gist_id}","starred_url":"https://api.github.com/users/graingert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graingert/subscriptions","organizations_url":"https://api.github.com/users/graingert/orgs","repos_url":"https://api.github.com/users/graingert/repos","events_url":"https://api.github.com/users/graingert/events{/privacy}","received_events_url":"https://api.github.com/users/graingert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2016-07-22T08:48:00Z","updated_at":"2016-08-22T18:40:08Z","closed_at":null,"body":"Is it possible to create private methods:\r\n\r\n```js\r\nfunction privateToString(){\r\n    return `Point<${ this.#x },${ this.#y }>`\r\n}\r\n\r\nclass Point {\r\n\r\n    #x;\r\n    #y;\r\n\r\n    constructor(x = 0, y = 0) {\r\n        this.#x = +x;\r\n        this.#y = +y;\r\n    }\r\n\r\n    get x() { return this.#x }\r\n    set x(value) { this.#x = +value }\r\n\r\n    get y() { return this.#y }\r\n    set y(value) { this.#y = +value }\r\n\r\n    equals(p) { return this.#x === p.#x && this.#y === p.#y }\r\n\r\n    toString() { return this::privateToString() }\r\n\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/tc39/proposal-private-fields/issues/comments/241508747","html_url":"https://github.com/tc39/proposal-private-fields/issues/37#issuecomment-241508747","issue_url":"https://api.github.com/repos/tc39/proposal-private-fields/issues/37","id":241508747,"user":{"login":"graingert","id":413772,"avatar_url":"https://avatars.githubusercontent.com/u/413772?v=3","gravatar_id":"","url":"https://api.github.com/users/graingert","html_url":"https://github.com/graingert","followers_url":"https://api.github.com/users/graingert/followers","following_url":"https://api.github.com/users/graingert/following{/other_user}","gists_url":"https://api.github.com/users/graingert/gists{/gist_id}","starred_url":"https://api.github.com/users/graingert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graingert/subscriptions","organizations_url":"https://api.github.com/users/graingert/orgs","repos_url":"https://api.github.com/users/graingert/repos","events_url":"https://api.github.com/users/graingert/events{/privacy}","received_events_url":"https://api.github.com/users/graingert/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T18:40:08Z","updated_at":"2016-08-22T18:40:08Z","body":"I think all of these issues would be solved by actually private symbols."}}
{"actor":{"display_login":"graingert"}}