4 ms·
Just seems like a bad idea - violating the idea of a getter and increasing complexity. Why have a getter in the first place? The proper place for this mess is
by drivingmenuts 6y ago
Just seems like a bad idea - violating the idea of a getter and increasing complexity. Why have a getter in the first place?
The proper place for this mess is the setter.
- eyelidlessness 6y agoWhy have either? Why even set a value more than once except as an optimization?
- drivingmenuts 6y agoI misspoke about the getter (was focused on getting dinner). I should stop at saying the purpose of the getter is to return the value. Using it as the setter as well confuses the purpose for the hidden property just smells wrong. This is my subjective opinion.