sway icon indicating copy to clipboard operation
sway copied to clipboard

Consider removing the type `byte`

Open mohammadfawaz opened this issue 3 years ago • 2 comments

It is not really documented in the Sway Book and it's pretty similar to a u8. One added benefit to byte is that it doesn't cast to other integer types like u8.

Edit: actually we do mention byte in passing here: https://fuellabs.github.io/sway/latest/basics/built_in_types.html#numeric-types

All of the unsigned integer types are numeric types, and the byte type can also be viewed as an 8-bit unsigned integer.

mohammadfawaz avatar Jun 10 '22 18:06 mohammadfawaz

Just do it. :yoda: There is no consider.

otrho avatar Jun 11 '22 00:06 otrho

https://www.youtube.com/watch?v=ZXsQAXx_ao0

adlerjohn avatar Jun 11 '22 15:06 adlerjohn