Re:C++ proposal: There are 8 bits in a byte
by pezezin on Friday October 18, 2024 @12:46AM
(#41876423)
Then just define a type alias, which is good practice if you want your types to be more descriptive: https://doc.rust-lang.org/reference/items/type-aliases.html
[ Parent
| on HN ]
Re:C++ proposal: There are 8 bits in a byte
by kazinator on Friday October 18, 2024 @02:55AM
(#41876975)
Nope! Because then you will also define an alias, and Suzy will define an alias, and Bob will define an alias, ...
We should all agree on int and uint; not some isize nonsense, and not bobint or suzyint.
Re:C++ proposal: There are 8 bits in a byte
by pezezin on Friday October 18, 2024 @03:46AM
(#41877189)
Ok, it is obvious that you are looking for something to complaint about and don't want to find a solution. That is not a productive attitude in life, but whatever floats your boat. Have a good day.
Re:C++ proposal: There are 8 bits in a byte
by kazinator on Friday October 18, 2024 @02:26PM
(#41882105)
> looking for something to complaint about
You know, that describes pretty much everyone who has anything to do with Rust.
"My ls utility isn't written in Rust, yikes! Let's fix that!"
"The comments under this C++-related HN submission aren't talking about Rust enough, yikes! Let's fix that!"
I'm obviously pointing to a solution: have a standard module that any Rust program can depend on coming from the language, which has a few sanely named types. Rather than every program defining its own.
Re:C++ proposal: There are 8 bits in a byte
by jclulow on Friday October 18, 2024 @03:23AM
(#41877079)
Alas, it's pretty clear that we won't!
Re:C++ proposal: There are 8 bits in a byte
by hahamaster on Friday October 18, 2024 @07:56PM
(#41884530)
You insist that we should all agree on something but you don't specify what.