5 ms·
I didn't know I needed this until I saw it and had that A-HA moment when I realized how much cleaner this would make a lot of code. Instead of hiding away the l
by OmarIsmail 14y ago
I didn't know I needed this until I saw it and had that A-HA moment when I realized how much cleaner this would make a lot of code. Instead of hiding away the logic in a bunch of conditionals this makes the overloading declarative which is great for maintenance.
- deleted 14y ago[deleted]
- mtrimpe 14y agoFor me it was realizing that // TypeError: "All patterns exhausted" means it's also perfect for limited, but good enough, checking of input parameters.