{"action":"created","issue":{"url":"https://api.github.com/repos/rricard/proposal-const-value-types/issues/10","repository_url":"https://api.github.com/repos/rricard/proposal-const-value-types","labels_url":"https://api.github.com/repos/rricard/proposal-const-value-types/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/rricard/proposal-const-value-types/issues/10/comments","events_url":"https://api.github.com/repos/rricard/proposal-const-value-types/issues/10/events","html_url":"https://github.com/rricard/proposal-const-value-types/issues/10","id":429485316,"node_id":"MDU6SXNzdWU0Mjk0ODUzMTY=","number":10,"title":"Collect developer feedback about the ergonomics of `const`","user":{"login":"littledan","id":189835,"node_id":"MDQ6VXNlcjE4OTgzNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/189835?v=4","gravatar_id":"","url":"https://api.github.com/users/littledan","html_url":"https://github.com/littledan","followers_url":"https://api.github.com/users/littledan/followers","following_url":"https://api.github.com/users/littledan/following{/other_user}","gists_url":"https://api.github.com/users/littledan/gists{/gist_id}","starred_url":"https://api.github.com/users/littledan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littledan/subscriptions","organizations_url":"https://api.github.com/users/littledan/orgs","repos_url":"https://api.github.com/users/littledan/repos","events_url":"https://api.github.com/users/littledan/events{/privacy}","received_events_url":"https://api.github.com/users/littledan/received_events","type":"User","site_admin":false},"labels":[{"id":1394268446,"node_id":"MDU6TGFiZWwxMzk0MjY4NDQ2","url":"https://api.github.com/repos/rricard/proposal-const-value-types/labels/take%20in%20account%20for%20next%20draft","name":"take in account for next draft","color":"39890b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2019-04-04T21:11:56Z","updated_at":"2019-06-07T23:42:08Z","closed_at":null,"author_association":"COLLABORATOR","body":"Most people I've talked to are pretty positive about `@const` in two ways:\r\n- Since it applies deeply on the data structure, it's not too wordy to have these extra letters at the beginning. And a terser syntax (like `#{ }` / `#[ ]`) might be too cryptic and confusing.\r\n- The name `@const` makes sense, since it's just like declaring a variable const, but it goes deeply through the data structure.\r\n\r\nIt'd be good to continue collecting feedback to understand if these intuitions are widely shared."},"comment":{"url":"https://api.github.com/repos/rricard/proposal-const-value-types/issues/comments/500071137","html_url":"https://github.com/rricard/proposal-const-value-types/issues/10#issuecomment-500071137","issue_url":"https://api.github.com/repos/rricard/proposal-const-value-types/issues/10","id":500071137,"node_id":"MDEyOklzc3VlQ29tbWVudDUwMDA3MTEzNw==","user":{"login":"shannon","id":1154610,"node_id":"MDQ6VXNlcjExNTQ2MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/1154610?v=4","gravatar_id":"","url":"https://api.github.com/users/shannon","html_url":"https://github.com/shannon","followers_url":"https://api.github.com/users/shannon/followers","following_url":"https://api.github.com/users/shannon/following{/other_user}","gists_url":"https://api.github.com/users/shannon/gists{/gist_id}","starred_url":"https://api.github.com/users/shannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shannon/subscriptions","organizations_url":"https://api.github.com/users/shannon/orgs","repos_url":"https://api.github.com/users/shannon/repos","events_url":"https://api.github.com/users/shannon/events{/privacy}","received_events_url":"https://api.github.com/users/shannon/received_events","type":"User","site_admin":false},"created_at":"2019-06-07T23:42:08Z","updated_at":"2019-06-07T23:42:08Z","author_association":"NONE","body":"Please forgive me if I am not fully understanding this proposal but what's the advantage of explicitly assigning the structure to a variable?\r\n\r\nIf a keyword is used could you not just go the way of `function`?\r\n\r\n```js\r\nfixed map1 {\r\n    a: 1,\r\n    b: 2,\r\n    c: 3,\r\n};\r\n\r\nconst map2 = map1 with .b = 5;\r\n\r\nassert(map1 !== map2);\r\nassert(map2 === fixed { a: 1, b: 5, c: 3}); //<- something like an anonyomous fixed\r\n```\r\nIf this were the case I would think something like `struct` would make sense as a keyword but I'll admit I don't know the full implications of this when compared to other languages."}}
{"actor":{"display_login":"shannon"}}