by abacate · 7y ago · 0 comments
In fact, you can easily define a result type templated by your result/error code (similarly to Rust or OCaml/Base) and use it in your whole codebase.
I never use virtual or exceptions in my C++ code, for instance, and I rarely need anything fancy like smart pointers.
Maybe one could argue that the language is too complex and supports too different programming styles, but that doesn't justify when the programmer chooses the worst way to do it: that's on the programmer and not on the language.
No comments yet.