Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I found that learning Ada was a good way to learn how to write good C++ code, because both languages are at the same level of abstraction but Ada is clean and opinionated.

The best a example is RAII. This is a pattern in C++ that you have to follow if you don't want to make a mess. In Ada it's a language feature called Controlled Types.



Do you feel the same is true for someone who does mainly rust nowadays ? I had the same feeling with rust & python ; If there are any patterns that help in other languages I'd definitely like to look them up


I don't know Rust so I can't comment on it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: