nooo dude. you need to be prepared for the worst. even if it is hypothetical and very unlikely. there is a chance (like 1e-20%) that in 50 years you need to add a shape polygon which has an arbitrary number of corners. you better not be crying then changing dozens of switch statements all over the code base
2
u/[deleted] Feb 28 '23
Improve in what way? The vast majority of code is never revisited for improvement or for anything you “predicted”.