RFC: Rename deserialize_unchecked
to deserializes_ignnore_signature
#1213
Labels
deserialize_unchecked
to deserializes_ignnore_signature
#1213
Most
_unchecked_
affixed functions in the standard library:unchecked_add
orfrom_utf8_unchecked
for example have "unchecked" to mean "there are safety conditions that must be met for this to not cause undefined behaviour".However, in
zbus
it is used to mean "deserialzie this, I've checked the body signature already". And while I understand the meaning, it is a bit confusing for outsiders tozbus
(oratspi
) to see the_unchecked
suffix when inzbus
you will merely get an error (perhaps a confusing one) if you deserialize to the wrong signature.My proposed new name is
deserialize_ignore_signature
.Thoughts?
The text was updated successfully, but these errors were encountered: