TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Can Modern Syntax beat 1977?

3 pointsby ADavison2560over 1 year ago
Computer Recreations Creative Computing, Sept-Oct. 1977 D. Van Tassel<p>Syntax Messages<p>In the March-April 1977 issue I suggested you write a program to generate as many different syntax-error messages as possible with as few statements in the program as possible.<p>I received a few responses but first prize must go to Wayne M. Compton of Dhahran, Saudi Arabia. He sent me a COBOL program with just one statement which generated 570 error messages. The statement was just the program name paragraph:<p>PROGRAM-ID. ERRMSG.<p>The compiler then went wild and generated 570 error messages. He ran this program on a IBM 370 OS&#x2F;VS system. If you have access to such a system you might try it.

3 comments

082349872349872over 1 year ago
ERRMSG yields a list of all error messages, so the compiler wasn&#x27;t &quot;going wild&quot;, but behaving according to spec. A modern COBOL should beat that handily; no doubt they&#x27;ve added at least one or two new errors between 1977 and now.<p>source: <a href="https:&#x2F;&#x2F;www.ibm.com&#x2F;support&#x2F;pages&#x2F;cobol-error-messages-are-not-documented" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.ibm.com&#x2F;support&#x2F;pages&#x2F;cobol-error-messages-are-n...</a>
InfamousReceover 1 year ago
C++ is hard to beat: <a href="https:&#x2F;&#x2F;www.tumblr.com&#x2F;tgceec&#x2F;74534916370&#x2F;results-of-the-grand-c-error-explosion" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.tumblr.com&#x2F;tgceec&#x2F;74534916370&#x2F;results-of-the-gra...</a>
greenbitover 1 year ago
Have seen C++ go berserk and throw miles of errors when template implementation gets fumbled. Have also seen Java go stark raving mad over relatively minor infractions. Wish I had some examples handy.