{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/csharplang/issues/762","repository_url":"https://api.github.com/repos/dotnet/csharplang","labels_url":"https://api.github.com/repos/dotnet/csharplang/issues/762/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/csharplang/issues/762/comments","events_url":"https://api.github.com/repos/dotnet/csharplang/issues/762/events","html_url":"https://github.com/dotnet/csharplang/issues/762","id":245018013,"number":762,"title":"Could we have property of nullable struct return ref","user":{"login":"Thaina","id":1042507,"avatar_url":"https://avatars1.githubusercontent.com/u/1042507?v=4","gravatar_id":"","url":"https://api.github.com/users/Thaina","html_url":"https://github.com/Thaina","followers_url":"https://api.github.com/users/Thaina/followers","following_url":"https://api.github.com/users/Thaina/following{/other_user}","gists_url":"https://api.github.com/users/Thaina/gists{/gist_id}","starred_url":"https://api.github.com/users/Thaina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thaina/subscriptions","organizations_url":"https://api.github.com/users/Thaina/orgs","repos_url":"https://api.github.com/users/Thaina/repos","events_url":"https://api.github.com/users/Thaina/events{/privacy}","received_events_url":"https://api.github.com/users/Thaina/received_events","type":"User","site_admin":false},"labels":[{"id":537024200,"url":"https://api.github.com/repos/dotnet/csharplang/labels/Discussion","name":"Discussion","color":"c2e0c6","default":false},{"id":545773793,"url":"https://api.github.com/repos/dotnet/csharplang/labels/Feature%20Request","name":"Feature Request","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-07-24T09:15:41Z","updated_at":"2017-08-22T03:30:32Z","closed_at":null,"body":"If it not be breaking change I wish `Value` property of nullable struct should return reference. But if it is I think we should have another property that would return reference of the struct in the nullable directly\r\n\r\nSomething like\r\n\r\n```C#\r\nVector3? v = GetNullablePosition(name);\r\nref Vector3 rv = v.Reference; // throw error for null, like .Value\r\n\r\nConsole.WriteLine(v?.X); // 0.0f\r\nrv.X += 10;\r\nConsole.WriteLine(v?.X); // 10.0f\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/csharplang/issues/comments/323909468","html_url":"https://github.com/dotnet/csharplang/issues/762#issuecomment-323909468","issue_url":"https://api.github.com/repos/dotnet/csharplang/issues/762","id":323909468,"user":{"login":"Thaina","id":1042507,"avatar_url":"https://avatars1.githubusercontent.com/u/1042507?v=4","gravatar_id":"","url":"https://api.github.com/users/Thaina","html_url":"https://github.com/Thaina","followers_url":"https://api.github.com/users/Thaina/followers","following_url":"https://api.github.com/users/Thaina/following{/other_user}","gists_url":"https://api.github.com/users/Thaina/gists{/gist_id}","starred_url":"https://api.github.com/users/Thaina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thaina/subscriptions","organizations_url":"https://api.github.com/users/Thaina/orgs","repos_url":"https://api.github.com/users/Thaina/repos","events_url":"https://api.github.com/users/Thaina/events{/privacy}","received_events_url":"https://api.github.com/users/Thaina/received_events","type":"User","site_admin":false},"created_at":"2017-08-22T03:30:32Z","updated_at":"2017-08-22T03:30:32Z","body":"@sharwell `StrongBox<T>` is class so it need to instantiate and defeat the purpose of being struct\r\n\r\n`ValueTuple<T>` `(bool,T)` is more likely but it can't use `??` or `?.` or protect the value from accessing when it being null"}}
{"actor":{"display_login":"Thaina"}}