{"action":"created","issue":{"url":"https://api.github.com/repos/nim-lang/rfcs/issues/42","repository_url":"https://api.github.com/repos/nim-lang/rfcs","labels_url":"https://api.github.com/repos/nim-lang/rfcs/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/rfcs/issues/42/comments","events_url":"https://api.github.com/repos/nim-lang/rfcs/issues/42/events","html_url":"https://github.com/nim-lang/rfcs/issues/42","id":370170703,"node_id":"MDU6SXNzdWUzNzAxNzA3MDM=","number":42,"title":"[RFC] `get` for container types returning an Option[T]","user":{"login":"narimiran","id":16516130,"node_id":"MDQ6VXNlcjE2NTE2MTMw","avatar_url":"https://avatars2.githubusercontent.com/u/16516130?v=4","gravatar_id":"","url":"https://api.github.com/users/narimiran","html_url":"https://github.com/narimiran","followers_url":"https://api.github.com/users/narimiran/followers","following_url":"https://api.github.com/users/narimiran/following{/other_user}","gists_url":"https://api.github.com/users/narimiran/gists{/gist_id}","starred_url":"https://api.github.com/users/narimiran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narimiran/subscriptions","organizations_url":"https://api.github.com/users/narimiran/orgs","repos_url":"https://api.github.com/users/narimiran/repos","events_url":"https://api.github.com/users/narimiran/events{/privacy}","received_events_url":"https://api.github.com/users/narimiran/received_events","type":"User","site_admin":false},"labels":[{"id":1091676988,"node_id":"MDU6TGFiZWwxMDkxNjc2OTg4","url":"https://api.github.com/repos/nim-lang/rfcs/labels/Feature","name":"Feature","color":"0080f0","default":false},{"id":1091665951,"node_id":"MDU6TGFiZWwxMDkxNjY1OTUx","url":"https://api.github.com/repos/nim-lang/rfcs/labels/RFC","name":"RFC","color":"1d1d1d","default":false},{"id":1091677081,"node_id":"MDU6TGFiZWwxMDkxNjc3MDgx","url":"https://api.github.com/repos/nim-lang/rfcs/labels/Stdlib","name":"Stdlib","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-10-15T13:45:19Z","updated_at":"2018-10-15T13:45:29Z","closed_at":null,"author_association":"COLLABORATOR","body":"<a href=\"https://github.com/dom96\"><img src=\"https://avatars0.githubusercontent.com/u/246651?v=4\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [dom96](https://github.com/dom96)**\n_Monday Apr 02, 2018 at 21:44 GMT_\n_Originally opened as https://github.com/nim-lang/Nim/issues/7476_\n\n----\n\nIf I'm using the ``options`` module in my program it sucks that not all modules use it. It would be nice to implement it for the containers in the stdlib, for example ``proc get*[K, V](t: Table[K, V], key: K): Option[V]``.\r\n\r\nWe should standardise on the name too, it should be consistent across the stdlib.\n"},"comment":{"url":"https://api.github.com/repos/nim-lang/rfcs/issues/comments/429858186","html_url":"https://github.com/nim-lang/rfcs/issues/42#issuecomment-429858186","issue_url":"https://api.github.com/repos/nim-lang/rfcs/issues/42","id":429858186,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTg1ODE4Ng==","user":{"login":"narimiran","id":16516130,"node_id":"MDQ6VXNlcjE2NTE2MTMw","avatar_url":"https://avatars2.githubusercontent.com/u/16516130?v=4","gravatar_id":"","url":"https://api.github.com/users/narimiran","html_url":"https://github.com/narimiran","followers_url":"https://api.github.com/users/narimiran/followers","following_url":"https://api.github.com/users/narimiran/following{/other_user}","gists_url":"https://api.github.com/users/narimiran/gists{/gist_id}","starred_url":"https://api.github.com/users/narimiran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narimiran/subscriptions","organizations_url":"https://api.github.com/users/narimiran/orgs","repos_url":"https://api.github.com/users/narimiran/repos","events_url":"https://api.github.com/users/narimiran/events{/privacy}","received_events_url":"https://api.github.com/users/narimiran/received_events","type":"User","site_admin":false},"created_at":"2018-10-15T13:45:29Z","updated_at":"2018-10-15T13:45:29Z","author_association":"COLLABORATOR","body":"<a href=\"https://github.com/alehander42\"><img src=\"https://avatars1.githubusercontent.com/u/830715?v=4\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [alehander42](https://github.com/alehander42)**\n_Thursday Apr 05, 2018 at 06:57 GMT_\n\n----\n\n@Araq can't you have just `if x?.ignoreWhitespace.isNotEmpty` ?\r\n\r\nThe problem is that currently there is no one good way to signify a value is actually optional: everything has its own way to somehow represent \"value is missing\" and even with `ref` values, you can't use reliably `nil`, as `not nil` checking is not perfect yet\r\n\n"}}
{"actor":{"display_login":"narimiran"}}