Search code examples
language-featurescobol

What's the bright side of Cobol?


I love spending my time investigating cool features of languages, even if I won't have a chance to use them anytime soon, but keep hearing only bad things about Cobol, but I'm sure it must of had some nice features for it to become as important as it did. So what would be some good features that could be learnt from Cobol?


Solution

  • An ability to write formulas in less concise manner. For example:

    ADD YEARS TO AGE.
    MULTIPLY PRICE BY QUANTITY GIVING COST.
    SUBTRACT DISCOUNT FROM COST GIVING FINAL-COST.
    

    Is it an advantage or disadvantage? depends on how you look at it...