deprecated: `map.get_opt`
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 23 Jun 2023 03:18:32 +0000 (22:18 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 23 Jun 2023 03:18:32 +0000 (22:18 -0500)
CHANGELOG
core/container/map.onyx

index 507464154d83346392a306a142e124c9fa8b5b6c..383d84d96445f54e45f14fc777d7293e07430e7f 100644 (file)
--- 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:
index e055f4b4662d818975ab6b4aec6ed11e9aa21d28..4d7e654d56850d70e483beaa2210be1cc73c3634 100644 (file)
@@ -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.