News for hackers. Stuff that matters.
Re:Why C++ sucks (2016 edition) by raverbashing on Monday February 22, 2016 @05:01AM (#11149744)
This is pretty much solvable with a preprocessor and some heuristics and you get to keep your LALR parser

Also IMHO a<b>c should not exist as a comparison. Does this mean a<b AND b>c? Then spell it out, it's a rare case and it doesn't contribute to readability (as opposed to a<b<c for example)

Re:Why C++ sucks (2016 edition) by masklinn on Monday February 22, 2016 @07:36AM (#11150386)
> Also IMHO a<b>c should not exist as a comparison. Does this mean a<b AND b>c? Then spell it out, it's a rare case and it doesn't contribute to readability (as opposed to a<b<c for example)

Both are probably broken anyway. The first one will compute as (a < b) > c, and the second one as (a < b) < c. Unless you're using Python which has chained comparison, which has its own pitfalls e.g. `a < b == c > d` may not do what you want (it's equivalent to `a < b and b == c and c > d`, not `(a < b) == (c > d)`)