3 ms·
> have poor developer experiences and they never bothered to improve and add more syntactic sugar Ada actually did in Ada 2012 and moreso in Ada 202x. - Expre
by pyjarrett 5y ago
> have poor developer experiences and they never bothered to improve and add more syntactic sugar
Ada actually did in Ada 2012 and moreso in Ada 202x.
- Expression functions, and expression forms of if/else and case statements
- more natural "aspect" versions of a lot of pragmas
- iterator syntax for containers which can be user-defined
- user-defined indexing into containers (Variable_Indexing and Constant_Indexing)
- user-defined aggregate initialization (such as for containers, the Yeison library exploits this to provide JSON-like initialization)
Overall though, the language syntax is coherently put together with orthogonal elements, despite the various pieces coming together over decades. The language designers have done a superb job ensuring that Ada 2012 felt uniform, and not like a collection of bolted on parts.