Gus Wirth wrote:
Why doesn't anyone like Ada?
Ada was meant to accompany Waterfall development and extensive, fixed
specifications. Name somebody *other* than the government who gets to
operate in that environment.
Also, Ada's vaunted "reliability" was found to have the same problems as
any other language (See: Ariane 5 explosion). The reliability of the
Space Shuttle software is less about the language than about the process
in which that language is used.
Superfically, because Ada isn't succinct. Lines of code productivity is
constant. Verbose languages are less productive. Hence, programmers
shy away from verbose languages.
See:
package Keyboard is
type Key is tagged private;
procedure Press (K : in out Key);
private
type Key is tagged record
On-Off : Boolean := False;
end record;
end Keyboard;
package Keyboard.Numbers is -- a child of Keyboard
type Numeric-Key is new Key with private;
procedure Press(Number : in out Numeric-Key);
type Number-Zero is new Key with private;
procedure Press(Zero: in out Number-Zero);
type Number-One is new Numeric-Key with private;
procedure Press(One : in out Number-One);
-- and so one for all numbers
private
type Number-Set is range 0..9;
type Numeric-Key is new Key with record
Value : Number-Set;
end record;
type Number-Zero is new Numeric-Key with null record;
type Number-One is new Numeric-Key with null record;
-- and so on for all numbers
end Keyboard.Numbers;
-a
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg