6 ms·
> but it's rare that I get to talk about this language comp.lang.ada, reddit.com/r/ada, irc, gitter, telegram, etc. > A, B, C, E, H, and J are variables. F is
by Lucretia9 5y ago
> but it's rare that I get to talk about this language
comp.lang.ada, reddit.com/r/ada, irc, gitter, telegram, etc.
> A, B, C, E, H, and J are variables. F is an array. D, G, and I are functions.
That was by design, because when it was designed, ide's like we have now didn't exist so being able to change a variable to an array from a function or vice versa was made easier. There is another reason and that mathematically an array is a function.
- CivBase 5y ago> comp.lang.ada, reddit.com/r/ada, irc, gitter, telegram, etc. Yeah, but I don't want to join a community just to make a single complaint about a 40 year old language. > That was by design, because when it was designed, ide's like we have now didn't exist so being able to change a variable to an array from a function or vice versa was made easier. What a bizarre decision for a language built around such a strict and elaborate type system. I'd consider it being difficult to swap functions and variables to be a feature.
- egberts1 5y agoHence the strong need to suffix the variable name to denote what type the variable is.