On 31/08/2020 17:57, Martin Gregorie wrote:
> COBOL wasn't actively evil (apart from the ALTER statement - and that had
> vanished by the mid-80s. It just far too verbose:
>
> ADD A to B GIVING C ON SIZE ERROR PERFORM OVERFLOW-TRAP.
>
That's ~57 bytes .
> where the Java equivalent would be something like:
>
> try {
> c = a + b;
> }
> catch (ArithmeticException e) {
> overflowTrap(e);
> }
>
...and that is ~72....counting tabs and carriage returns..
Definitely java is more verbose.
> There's also a lot of typing involved because of the size ot variable
> names and the number of them you have to define:
>
In Java.
--
“when things get difficult you just have to lie”
― Jean Claud Jüncker
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|