try? / catch?

This commit is contained in:
Christoffer Lerno
2023-03-17 00:45:23 +01:00
committed by Christoffer Lerno
parent 1b667cbc93
commit 8b0df0ee11
33 changed files with 235 additions and 183 deletions

View File

@@ -112,7 +112,7 @@ fn Value! HashMap.get(HashMap* map, Key key) @operator([])
fn bool HashMap.has_key(HashMap* map, Key key)
{
return try(map.get_ref(key));
return try? map.get_ref(key);
}
fn bool HashMap.set(HashMap* map, Key key, Value value) @operator([]=)