News for hackers. Stuff that matters.
Re:Hard Rust requirements from May onward for all Debian ports by Someone on Saturday November 01, 2025 @01:19PM (#45783423)
That’s not a good example. Wrapping an integral value into a struct works exactly the same in C and (https://stackoverflow.com/questions/40629989/pros-and-cons-o...)

In C++ you can even add overloaded operators to make using math on such structs ergonomical.

Compilers know of the idiom, and will optimize the struct away.

There are no comments on this comment yet.