News for hackers. Stuff that matters.
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.

   x = (-b + sqrt(b**2 + 4*a*c) / (2*a)
   
   x = (- b + sqrt(b ** 2 + 4 * a * c) / (2 * a)
... Although, one could argue that allowing tightened multiplication and division are enough.
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)
Re:C++ Modules Might Be Dead-On-Arrival by blt on Thursday January 31, 2019 @07:43PM (#19050631)
lol, thank you.
Re:C++ Modules Might Be Dead-On-Arrival by wtetzner on Monday January 28, 2019 @01:15PM (#19019668)
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.