Replies: 3 comments 1 reply
-
This might be a bug in We had a problem with u32be initially as well, but it's exercised as part of the PNG test suite decoding the |
Beta Was this translation helpful? Give feedback.
-
Hi, it might be, but was looking at the I noticed the use of endian-specific ints alright but the float ones seem much less used. There's also the issue of what endianness means for floats, as "half-endian" formats are also used. There's also the more philosophical point that endianness only comes into play at these input/output situations (and maybe for big int calculations) and it seems to me overkill to have as first-class types, particularly for floats (which are hard enough to get right anyway), and the simplification benefits (of removing them for floats at least) are significant. |
Beta Was this translation helpful? Give feedback.
-
Ha won't do! |
Beta Was this translation helpful? Give feedback.
-
Was wondering what the use case for endian-specific floats was, as currently they're broken (for
f16
andf32
anyway). E.g. on a little-endian machine, the followingwill print
Of course this can be fixed but if they're not being used much (which them being broken sort of hints at) then removing them from the language would be a very nice simplification.
Beta Was this translation helpful? Give feedback.
All reactions