3 ms·
If you're repeating yourself, then you could possibly abuse higher class functions to automatically generate error handling?
by fao_ 11y ago
If you're repeating yourself, then you could possibly abuse higher class functions to automatically generate error handling?
- doublerebel 11y agoYes, there are libs like errTo [1] and iced-error/make_esc [2]. Not to mention Promise.promisify(). Long solved problem. [1]: https://www.npmjs.com/package/errto https://www.npmjs.com/package/errto [2]: https://www.npmjs.com/package/iced-error https://www.npmjs.com/package/iced-error