Re:C++ Modules Might Be Dead-On-Arrival
by blt on Monday January 28, 2019 @01:08PM
(#19019609)
I generally separate operands, but in dense math expressions it's not always the best for readability.
... Although, one could argue that allowing tightened multiplication and division are enough.
[ Parent
| on HN ]
Re:C++ Modules Might Be Dead-On-Arrival
by AnimalMuppet on Monday January 28, 2019 @01:11PM
(#19019635)
Not to be that guy, but...
x = (-b + sqrt(b**2 - 4*a*c) / (2*a)lol, thank you.
Well, if you're only interested in kebab-case, then specifying that identifiers can't start or end with hyphens solves most of the problem. The only restriction would be that you'd need whitespace around '-' only when used as an infix operator.