4 ms·
> compile times, ugly syntax, ergonomics This is why I write in Ada--it's C++98 with cleaner syntax and a bunch of nice/new features (array bounds, pre/post co
by pyjarrett 5y ago
> compile times, ugly syntax, ergonomics
This is why I write in Ada--it's C++98 with cleaner syntax and a bunch of nice/new features (array bounds, pre/post conditions, etc). It's package-based, so types do not "contain functions", so free functions, member function, who cares, it's all written and callable the same ways. There's even a real module system built in for decades with packages. You have to get over `begin` and `end` though.
- WalterBright 5y ago> You have to get over `begin` and `end` though. Ada would be smart to get rid of that.
- pyjarrett 5y agoIt's probably not removable after almost 40 years. It has expression functions which you can wrap a return result in () and avoid it. The important part is that it's surprisingly consistent in that 3 of the 4 structural elements are nearly all self-similar in their declare/begin/end format (protected type being the 4th and the difference).
- WalterBright 5y agoActually, I liked Ada since I read the Milspec on it back in 1981 or so. It had its positive influence on D!
- GoblinSlayer 5y agoI heard they work on a curly brace variant of ada.