i can't figure out benefit initializing class instance syntax adafruit_8x8matrix matrix = adafruit_8x8matrix();
, when adafruit_8x8matrix matrix;
do. there kind of benefit former syntax vs simplified syntax? tested both , makes no difference compiler, , don't have module library supposed work can't benchmark it. i've never seen syntax anywhere else, know this.
link example forked because deps in same repo project.
technically, first syntax creates temporary object , uses copy construct matrix object. second syntax avoids copy , constructs matrix directly. simplified syntax better. however, compiler optimize difference away, resultant object code end being same.