You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Patashu
changed the title
use constants for -1, 0, 1, 10?
use constants for -1, 0, 1, 10? (UPDATE: constants added but not enforced)
Apr 2, 2019
Patashu
changed the title
use constants for -1, 0, 1, 10? (UPDATE: constants added but not enforced)
enforce usage of constants instead of constructing decimals on the spot?
Apr 16, 2019
pros: less object construction/destruction.
cons: decimals aren't immutable, so someone could accidentally change the value of 0 and break everything.
so the time/memory savings would have to outweigh the threat of destruction.
The text was updated successfully, but these errors were encountered: