Hacker News new | ask | show | jobs
by JoachimSchipper 3370 days ago
Yes, although you should probably do struct value_in_meters { int in_meters; }, so that e.g. x.in_meters / y.in_inches (will compile, but) looks as wrong as it is.