Weekend update: Operator and parsing design notes

Thanks again for all the bug reports and feedback for Cpp2 and cppfront! As I mentioned last weekend, I’ve started a wiki with “Design notes” about specific aspects of the design to answer why I’ve made them they way they currently are… basic rationale, alternatives considered, in a nutshell, as quick answers to common questions I encounter repeatedly.

This weekend I wrote up three more short design notes, the first of which is the writeup on “why postfix unary operators?” that I promised in my CppCon 2022 talk.

Design note: Postfix operators. Why are unary * and & postfix? What about ++? Why does the -> operator naturally disappear?Design note: Postfix unary operators vs binary operators. What about examples like a**b?Design note: Unambiguous parsing. How does Cpp2 parse things that seem ambiguous and/or challenging, like ac,d>?
 •  0 comments  •  flag
Share on Twitter
Published on October 10, 2022 21:31
No comments have been added yet.


Herb Sutter's Blog

Herb Sutter
Herb Sutter isn't a Goodreads Author (yet), but they do have a blog, so here are some recent posts imported from their feed.
Follow Herb Sutter's blog with rss.