2 ms·
When I went to school the instructor talked a bit about Ada, but as far as I know there weren't any compilers available that mere students could afford. This w
by jandrese 6y ago
When I went to school the instructor talked a bit about Ada, but as far as I know there weren't any compilers available that mere students could afford. This was in the mid-90s.
I remember doing a bit of comparison of the syntax between languages, and Ada's lack of anything like a switch/case statement stood out, but the instructor did talk up the idea that if you could get it to compile it would run in Ada, assuming you didn't hit a compiler bug. Apparently getting the compilers working properly was a problem at the time.
- Jtsummers 6y agoI don't know when it was added, but Ada does have a switch/case equivalent construct and I can't imagine it wasn't available early on. case X is when 1 => ...; when 2 => ...; when 3 | 4 | 100 => ... when others => ... end case;
- okl 6y agoIt was always part of the language, http://archive.adaic.com/standards/83lrm/html/lrm-05-04.html#5.4 http://archive.adaic.com/standards/83lrm/html/lrm-05-04.html...
- jandrese 6y agoI have no idea what my professor was on about then. I remember him showing a slide of this ridiculous looking if/then/elseif... chain compared to a C switch statement.
- Lucretia9 6y agoI was at uni in 1995, they used gnat 3.15p.