WebAssembly / wasi-keyvalue

27 stars 10 forks source link

fix!: do not return an error when `exists` key does not exist #18

Closed rvolosatovs closed 10 months ago

rvolosatovs commented 10 months ago

Currently readwrite.exists method must return an error for keys that do not exist, which makes the return value (bool) of that method redundant. Remove the requirement to return an error to address this inconsistency.

Alternatively, the bool return value could be removed, but IMO exists would not be the right name for such method anymore