Open zwimer opened 2 years ago
Both ++a and a++ map to plus_plus, though as one the differentiation between them still exists via different overrides.
++a
a++
plus_plus
That is ++a maps to plus_plus() and a++ to plus_plus(0); which makes sense given how the operators are defined in C++.
plus_plus()
plus_plus(0)
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.
post_increment
pre_increment
--
This was documented via https://github.com/RosettaCommons/binder/pull/229
The rest of this issue is just a feature request at this point.
Feature add PR: https://github.com/RosettaCommons/binder/pull/238
Both
++a
anda++
map toplus_plus
, though as one the differentiation between them still exists via different overrides.That is
++a
maps toplus_plus()
anda++
toplus_plus(0)
; which makes sense given how the operators are defined in C++.A feature add could be changing
plus_plus
topost_increment
/pre_increment
depending on which is detected. All of this is true with--
too.