I came across the following example while looking at a C ++ Core Guidlines document :
Example
change_speed(double s);
change_speed(2.3);
The best approach is to be explicit about the meaning of the double (new speed or delta at old speed?) And the unit used:
change_speed(Speed s);
change_speed(2.3);
change_speed(23m / 10s);
We could accept a simple (without a unit) double as a delta, but that would be a mistake.
As for this last line of code, on this particular page there was no mention of what this syntax meant, and it looked completely alien to me.
, , , , '' , , , , 's' , 'm'.
SO, , , , .
: "m" *?
< > * , .
>