{"action":"created","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/8462","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/8462/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/8462/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/8462/events","html_url":"https://github.com/nim-lang/Nim/pull/8462","id":345165983,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0Mzg1MjY5","number":8462,"title":"Adds mget for Option[T].","user":{"login":"dom96","id":246651,"node_id":"MDQ6VXNlcjI0NjY1MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/246651?v=4","gravatar_id":"","url":"https://api.github.com/users/dom96","html_url":"https://github.com/dom96","followers_url":"https://api.github.com/users/dom96/followers","following_url":"https://api.github.com/users/dom96/following{/other_user}","gists_url":"https://api.github.com/users/dom96/gists{/gist_id}","starred_url":"https://api.github.com/users/dom96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dom96/subscriptions","organizations_url":"https://api.github.com/users/dom96/orgs","repos_url":"https://api.github.com/users/dom96/repos","events_url":"https://api.github.com/users/dom96/events{/privacy}","received_events_url":"https://api.github.com/users/dom96/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-27T09:59:34Z","updated_at":"2018-07-27T18:43:40Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/nim-lang/Nim/pulls/8462","html_url":"https://github.com/nim-lang/Nim/pull/8462","diff_url":"https://github.com/nim-lang/Nim/pull/8462.diff","patch_url":"https://github.com/nim-lang/Nim/pull/8462.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/comments/408506039","html_url":"https://github.com/nim-lang/Nim/pull/8462#issuecomment-408506039","issue_url":"https://api.github.com/repos/nim-lang/Nim/issues/8462","id":408506039,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODUwNjAzOQ==","user":{"login":"twetzel59","id":27702327,"node_id":"MDQ6VXNlcjI3NzAyMzI3","avatar_url":"https://avatars2.githubusercontent.com/u/27702327?v=4","gravatar_id":"","url":"https://api.github.com/users/twetzel59","html_url":"https://github.com/twetzel59","followers_url":"https://api.github.com/users/twetzel59/followers","following_url":"https://api.github.com/users/twetzel59/following{/other_user}","gists_url":"https://api.github.com/users/twetzel59/gists{/gist_id}","starred_url":"https://api.github.com/users/twetzel59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twetzel59/subscriptions","organizations_url":"https://api.github.com/users/twetzel59/orgs","repos_url":"https://api.github.com/users/twetzel59/repos","events_url":"https://api.github.com/users/twetzel59/events{/privacy}","received_events_url":"https://api.github.com/users/twetzel59/received_events","type":"User","site_admin":false},"created_at":"2018-07-27T18:43:40Z","updated_at":"2018-07-27T18:43:40Z","author_association":"CONTRIBUTOR","body":"@hlaaftana, definitely that would work syntactically, but semantically we should think about it a bit.\r\n\r\n[] is meant for dereferencing, so we would not want to confuse a pointer indirection with simply inner field access. For example, in C++ you wouldn't implement the dereference \"star\" (*) if you didn't have a pointer type.\r\n\r\nOn the other hand, I really like this idea that you're presenting. It can be argued that it is more orthogonal to use []. Nim can try to be increasingly self-consistent. Using the [] means that access is the same for ``ptr``, ``ref``, and ``Option[T]``.\r\n\r\nSo, the question is: do we want this similarity between our pointers and our optional type (or sum types in general)?"}}
{"actor":{"display_login":"twetzel59"}}