Rename storage access methods #4740
Labels
breaking
May cause existing user code to break. Requires a minor or major release.
compiler: ui
Mostly compiler messages
enhancement
New feature or request
good first issue
Good for newcomers
lib: std
Standard library
storage
Anything related to how we treat the storage in Sway
StorageKey
'sread
andtry_read
are confusing, notably because of errors related to uninitialized storage.try_read
should be the default behavior and there should be extensive documentation of what happens with the storage initialization.try_read
should be renamed toread
andread
toread_unchecked
, but this is a breaking and abrasive change, so we should consider a way of migrating the interface that doesn't startle the users.The text was updated successfully, but these errors were encountered: