3 ms·
> declarative languages have almost no bugs That one piqued my attention. It's one thing to say "fewer bugs" and quite another to say "almost none". Rust is a
by throwaway894345 5y ago
> declarative languages have almost no bugs
That one piqued my attention. It's one thing to say "fewer bugs" and quite another to say "almost none". Rust is a declarative language with one of the more rigorous static analysis checkers (for pedants: among mainstream languages) and I still write buggy code.
- ModernMech 5y agoIn what way is Rust declarative? When I think of a declarative language, I think of Prolog or SQL. Rust to me would seem to be explicitly imperative.
- throwaway894345 5y agoI guess I was confusing expression based or functional with declarative.
- bawolff 5y agoPoint still stands. I've made plenty of bugs writing both sql and prolog (although i've only written a small amount of prolog) Certain classes might be more or less likely, but no paradigm is magic and stops all bugs.