3 ms·
For what it’s worth, this discussion is exactly what pushed me to experiment with a small runtime invariant helper for React/JS. The idea wasn’t to replace goo
by vortexshadow 9mo ago
For what it’s worth, this discussion is exactly what pushed me to experiment
with a small runtime invariant helper for React/JS.
The idea wasn’t to replace good modeling or tests,
but to fail early when real-world state temporarily drifts
away from its intended shape (especially in async or legacy flows).
I put a small prototype here if anyone’s curious:
https://github.com/vortexshadow678-hash/invariant-guard https://github.com/vortexshadow678-hash/invariant-guard