News for hackers. Stuff that matters.
Re:A Plea for Lean Software (1995) [pdf] by pjmlp on Wednesday August 05, 2020 @03:41PM (#24064726)
I think that by Ada 95 they were already available, were you still using Ada 83?

Yeah, just check the list of features for C2X, WG14 isn't that keen in innovating that much, nor in fixing C's flaws.

Re:A Plea for Lean Software (1995) [pdf] by bpyne on Wednesday August 05, 2020 @04:20PM (#24065105)
I notice that Ada 95 included inheritance. My experience in other languages with inheritance is that the feature creates a lot of complexity. Have you used inheritance in Ada and, if so, has it created any issues?
Re:A Plea for Lean Software (1995) [pdf] by kqr on Thursday August 06, 2020 @02:18AM (#24068559)
The problem with many other languages is that they do everything through inheritance. In most popular languages, inheritance is set up such that it does anything you want it to. This is what creates complexity, not the inheritance in and of itself.

Ada does things slightly differently. It manages to separate out the various parts of OOP into different language constructs, and this makes it possible to pick and choose what you need, and not get everything including the kitchen sink when you try to use one thing (like inheritance.)

Re:A Plea for Lean Software (1995) [pdf] by pjmlp on Thursday August 06, 2020 @02:10AM (#24068519)
I use OOP languages since I learned OOP with Turbo Pascal 5.5 back in 1991.

So no, I never had any big deal with inheritance in any language, and in what concerns Ada its tag based dispatch is also quite interesting as idea.