Ada was also easy to read
Ada was also easy to read
Posted Oct 22, 2024 1:52 UTC (Tue) by jjs (guest, #10315)In reply to: I miss Ada. by acarno
Parent article: Quote of the week
I like design for readability - it makes maintenance much easier (IMO). Comments are nice, but can get out of sync with the actual code if the programmers editing code don't update the comments. Also, design for readability, IMO, makes it easier to learn the language. You're already familiar with the words. Someone with computer programming skills but know knowledge of Ada can probably figure out what a program does, because of the readability.
I'm not familiar with Rust other than what I've read on websites like lwn.net, but in terms of some of the core design, from what I've read, they're similar. Avoid "Undefined Behavior." Check up front for issues (at compile time). Define "correct behavior" specifically, and make it hard to not do the right thing. Design for guaranteed behavior.
Unfortunately, initial compilers were slow, and slow to improve, due to various reasons (including, as I recall, mandatory compliance testing before you could use the name).