4 ms·
That's a poor example for the documentation to use. In a case like that, kebab notation leads to visual ambiguity when reading code, especially within an expres
by epoch1970 11y ago
That's a poor example for the documentation to use. In a case like that, kebab notation leads to visual ambiguity when reading code, especially within an expression performing math operations. It becomes harder, at a glance, to tell if the "-" is the kebab connector or if it's subtraction or negation.
Kebab notation makes sense in other contexts, like DOM IDs and CSS class names. It does not make sense in a case like that.