4 ms·
Python is the same language that promotes throwing exceptions for parsing a number from a string instead of a simple bool. Not exactly sure Python is the best l
by lloydatkinson 5y ago
Python is the same language that promotes throwing exceptions for parsing a number from a string instead of a simple bool. Not exactly sure Python is the best language as a basis for FP, when Python itself so openly disregards such cleaner approaches.
- wlpu 5y agoPersonally I'd rather the exception than a "simple" bool, which would make for noisy code and less simplicity. In reality and exception is just less bad, better than both would be a result type
- Jeff_Brown 5y agoYes, if you have the luxury of starting anywhere. As someone who has to work in a Python-ish language for the sake of hiring and backward compatibility, I love Coconut.
- macintux 5y agoErlang is a successful FP language that throws exceptions for parsing a number from a string. Admittedly Erlang also is built around the idea of exceptions everywhere.