3 ms·
The second point sounds a lot like "fight the language", which doesn't seem right. We had a coworker implement a custom Either object in Java instead of just u
by kazagistar 10y ago
The second point sounds a lot like "fight the language", which doesn't seem right.
We had a coworker implement a custom Either object in Java instead of just using exceptions, and it made the interface significantly less ergonomic. I really like functional return values like that, but I've found that it makes things easier to use the paradigms the language provides.
- blowski 10y agoIt's not about fighting the language at all, it's about not letting the language dictate the business rules. The functionality exposed by the app should be the same whether I code it in JavaScript, Go or Assembly. How I implement it in those languages is a detail that comes after I've decided what to implement.