binder icon indicating copy to clipboard operation
binder copied to clipboard

Post/Pre increment/decrement operator confusion

Open zwimer opened this issue 3 years ago • 2 comments

Both ++a and a++ map to plus_plus, though as one the differentiation between them still exists via different overrides.

That is ++a maps to plus_plus() and a++ to plus_plus(0); which makes sense given how the operators are defined in C++.

A feature add could be changing plus_plus to post_increment / pre_increment depending on which is detected. All of this is true with -- too.

zwimer avatar Sep 20 '22 21:09 zwimer

This was documented via https://github.com/RosettaCommons/binder/pull/229

The rest of this issue is just a feature request at this point.

zwimer avatar Oct 12 '22 00:10 zwimer

Feature add PR: https://github.com/RosettaCommons/binder/pull/238

zwimer avatar Oct 12 '22 00:10 zwimer