{"action":"created","issue":{"url":"https://api.github.com/repos/Dzzirt/OOP/issues/13","repository_url":"https://api.github.com/repos/Dzzirt/OOP","labels_url":"https://api.github.com/repos/Dzzirt/OOP/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/Dzzirt/OOP/issues/13/comments","events_url":"https://api.github.com/repos/Dzzirt/OOP/issues/13/events","html_url":"https://github.com/Dzzirt/OOP/issues/13","id":142874129,"number":13,"title":"Замечания по Dictionary","user":{"login":"alexey-malov","id":6040682,"avatar_url":"https://avatars.githubusercontent.com/u/6040682?v=3","gravatar_id":"","url":"https://api.github.com/users/alexey-malov","html_url":"https://github.com/alexey-malov","followers_url":"https://api.github.com/users/alexey-malov/followers","following_url":"https://api.github.com/users/alexey-malov/following{/other_user}","gists_url":"https://api.github.com/users/alexey-malov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexey-malov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexey-malov/subscriptions","organizations_url":"https://api.github.com/users/alexey-malov/orgs","repos_url":"https://api.github.com/users/alexey-malov/repos","events_url":"https://api.github.com/users/alexey-malov/events{/privacy}","received_events_url":"https://api.github.com/users/alexey-malov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-23T06:26:39Z","updated_at":"2016-03-27T14:30:10Z","closed_at":null,"body":"при работе с пользователем не воспринимать отличный от Да ответ как Нет, т.к. пользщователь потеряет результаты работы"},"comment":{"url":"https://api.github.com/repos/Dzzirt/OOP/issues/comments/202072472","html_url":"https://github.com/Dzzirt/OOP/issues/13#issuecomment-202072472","issue_url":"https://api.github.com/repos/Dzzirt/OOP/issues/13","id":202072472,"user":{"login":"alexey-malov","id":6040682,"avatar_url":"https://avatars.githubusercontent.com/u/6040682?v=3","gravatar_id":"","url":"https://api.github.com/users/alexey-malov","html_url":"https://github.com/alexey-malov","followers_url":"https://api.github.com/users/alexey-malov/followers","following_url":"https://api.github.com/users/alexey-malov/following{/other_user}","gists_url":"https://api.github.com/users/alexey-malov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexey-malov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexey-malov/subscriptions","organizations_url":"https://api.github.com/users/alexey-malov/orgs","repos_url":"https://api.github.com/users/alexey-malov/repos","events_url":"https://api.github.com/users/alexey-malov/events{/privacy}","received_events_url":"https://api.github.com/users/alexey-malov/received_events","type":"User","site_admin":false},"created_at":"2016-03-27T14:30:10Z","updated_at":"2016-03-27T14:30:10Z","body":"```c++\r\nstd::string DictionaryLogic::GetValueAt(std::string const& word)\r\n{\r\n\tstd::string result;\r\n\ttry\r\n\t{\r\n\t\tresult = m_oldWords.at(word);\r\n\t}\r\n\tcatch (std::out_of_range const & e)\r\n\t{\r\n\t\tstd::ignore = e;\r\n\t}\r\n\treturn result;\r\n}\r\n```\r\nнеоднозначное решение. в случае получения перевода для отсутствующего слова возвращение пустой строки будет требовать от вызывающего кода обязательной проверки результата на пустоту. В то же время выбрасывание исключения (возможно, другого типа) может быть обработано в вызывающем коде. Хотя такая ситуация (запрос перевода для слова, в наличии которого не убедились через HasWord), является свидетельством наличия ошибки в логике программы (очевидно, что в тестах эта ситуация должна проверяться)."}}