From: Brendan Hansen Date: Fri, 23 Jun 2023 03:18:32 +0000 (-0500) Subject: deprecated: `map.get_opt` X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=4ae45a9dcebab7973a5fca17293e7717c74c0301;p=onyx.git deprecated: `map.get_opt` --- diff --git a/CHANGELOG b/CHANGELOG index 50746415..383d84d9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,7 +5,7 @@ Release v0.1.4 Additions: Removals: -- `map.get_opt` +- Deprecated `map.get_opt`. - This is unnecessary with the new semantics of `map.get`. Changes: diff --git a/core/container/map.onyx b/core/container/map.onyx index e055f4b4..4d7e654d 100644 --- a/core/container/map.onyx +++ b/core/container/map.onyx @@ -168,6 +168,8 @@ get_ptr_or_create :: (use map: &Map, key: map.Key_Type) -> &map.Value_Type { } #doc """ + **DEPRECATED** - Use `map.get` instead. + Returns an Optional of the value at the specified key. The Optional has a value if the key is present, otherwise the optional does not have a value.