Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why doesn Ada use dot notation for OO?

ADA DOT notation OO
0
Posted

Why doesn Ada use dot notation for OO?

0
10

If you are used to the notion of an abstract data type, defined by a type and a set of operations, and then you decide you want to support extensibility of abstract data types, then you end up at something very much like Ada 95, Haskell, or CLOS, with the “operation(operand, operand, …)” or “operand operand” or “object := operation(operand, operand,…)” syntax familiar from theoretical mathematics and logic. If you instead focus on updating objects as the primary operations of interest, then you end up with the . syntax. In some ways, the Ada 95 syntax is more sympathetic with the “value-oriented” (i.e. functional) way of thinking than the “object-oriented” (i.e. side-effecting) way of thinking. The net effect, in any case, is that you can more easily write in a “functional” style in Ada 95 where there is less use of heap-resident read/write objects, and more use of values (rather than objects) of an abstract type being passed around, assigned, declared, etc.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.