Entomy / Ada-Improvements

Repository of Ada language improvement ideas
GNU General Public License v3.0
4 stars 0 forks source link

Use [] for indexing instead of () #8

Open Entomy opened 5 years ago

Entomy commented 5 years ago

Ada does:

Container(1)

It should be:

Container[1]

Rationale: This is a minor adjustment just to be more clear about the operation being performed.

Joebeazelman commented 2 years ago

I believe this has already been implemented in Ada 202x

Entomy commented 1 year ago

@Joebeazelman doesn't look like it http://www.ada-auth.org/standards/22rm/html/RM-4-1-1.html

Joebeazelman commented 1 year ago

Yeah, you're right. Can't understand why the brackets were only changed for static initialization and nothing else. Kinda sucks. I hate it when programming languages try to be different just to be different. Interestingly, Ada has an expression function which is awesome if it wasn't handicapped by its stupid syntax. Traditional constructs such as Case, have been changed to where it's almost indiscernible from LISP with its aggressive use of parenthesis.