News for hackers. Stuff that matters.
Re:Modern C for C++ Peeps by lionkor on Saturday January 07, 2023 @06:27PM (#34294166)
to avoid implicit conversion - you can implicitly convert between meters and ft if its like this:

    typedef int feet;
    typedef int meters;
this sucks, because they are the same to the compiler. Making them structs makes them unique types, and you can no longer pass a feet value to a meters parameter, etc.

Its incredibly useful

There are no comments on this comment yet.