5 ms·
Would you create a wrapper class and member function to make addition less likely to mistype? num = num.plus(x); might be less likely to mistype than num = n
by dahfizz 9y ago
Would you create a wrapper class and member function to make addition less likely to mistype?
num = num.plus(x);
might be less likely to mistype than
num = num + x;
but nobody would ever do that. Once you've done bitwise operators a few times they become just as comfortable and natural as addition or subtraction.