Hi, can people check this into to Ada for mistakes before I push the PR?
---
---
language: Ada
filename: learnc.ada
contributors:
["Luke A. Guest", "https://github.com/Lucretia"]
---
Ada is a strong statically typed imperative, [object-oriented](https://ada-lang.io/docs/arm/AA-3/AA-3.9), [real-time](https://ada-lang.io/docs/arm/AA-D), [parallel](https://ada-lang.io/docs/arm/AA-9) and [distributed](https://ada-lang.io/docs/arm/AA-9) programming language from the Pascal/Algol family of languages, but only has a passing resemblence to Pascal, with the only remnants left being the ```begin/end``` keyword pair, the ```:=``` assignment symbol, records and ```if/case``` control statement structures.
Ada was originally designed to be an [object-based](https://ada-lang.io/docs/arm/AA-3/AA-3.3) language and to replace 100's of languages in use by the US government. This means that all entities are objects, not in the object-oriented sense. The language became [Object-Oriented](https://ada-lang.io/docs/arm/AA-3/AA-3.9) in 1995, and added [interfaces](https://ada-lang.io/docs/arm/AA-3/AA-3.9#Subclause_3.9.4) derived from Java in 2005. [contract based](https://ada-lang.io/docs/arm/AA-13/AA-13.1#Subclause_13.1.1) programming, was introduced with Ada 2012.
Ada was designed to be easy to read, even for non-programmers, e.g. management within an organisation, therefore programs written in the language tend to be a bit more verbose.
Ada is a modern programming language, and now has a package manager like other modern languages, alire, see below.
```ada
-- Comments are written with a double hyphen and exist until the end of
-- the line.
This file has been truncated. show original
1 Like
How should a person propose changes now the PR’s posted?
You can fork the mine, pull all branches or fork the original and add mine as a branch, then create a new branch from my branch, the PR to me and I can merge it and push it. They haven’t merged it yet, so there’s still time.
And remember to add your details to the top front matter with mine and Fer’s.
The add-ada branch has been merged.
Excellent!
I’d suggest to add “in some places” after:
Lucretia:
begin/end
keyword pair
In Pascal the begin/end
pair has to be used all over the statement part, for loop
s, if/then/else
and so on, which is tedious.
I f you mean after begin
and before end
, no. That’s makes the source very long and much harder to read, I used to do that .
mgrojo
January 13, 2024, 3:27pm
8
In fact, that sentence could be misleading for someone knowing Pascal and not Ada, because there are influences from Pascal in the Ada syntax in many places, but the most differing characteristic of Ada is indeed the lack of the begin
keyword in most of the blocks, where it was needed in Pascal (unless there was a single statement).
2 Likes