{"id":12,"date":"2008-03-15T23:22:02","date_gmt":"2008-03-16T04:22:02","guid":{"rendered":"http:\/\/vgable.com\/blog\/2008\/03\/15\/standard-error-messages\/"},"modified":"2010-04-08T23:00:58","modified_gmt":"2010-04-09T04:00:58","slug":"standard-error-messages","status":"publish","type":"post","link":"https:\/\/vgable.com\/blog\/2008\/03\/15\/standard-error-messages\/","title":{"rendered":"Standard Error Messages"},"content":{"rendered":"<p>UPDATE 2010-04-08 <a href=\"http:\/\/blog.llvm.org\/2010\/04\/amazing-feats-of-clang-error-recovery.html\">CLANG\/LLVM comes through!<\/a>. OK, I can believe I&#8217;m living in the 21st century now :-)<\/p>\n<p>All languages should include well-written error messages as part of their specification.  These messages should include a link to a good explanation of the problem, and anything someone learning the language might want to know, like the design behind the error.<\/p>\n<p>Every standards-compliant compiler would be required to emit the readable error messages.<\/p>\n<p>This could eliminate inscrutable error messages, in one fell swoop.<\/p>\n<p>(The old <a href=\"http:\/\/en.wikipedia.org\/wiki\/Macintosh_Programmer's_Workshop\">MPW Compiler<\/a> had some<br \/>\n<a href=\"http:\/\/www.ralentz.com\/old\/mac\/humor\/mpw-c-errors.html\">quirky and humorous error messages<\/a>.  &#8220;This struct already has a perfectly good definition&#8221;, for example.  Unfortunately, I don&#8217;t know of any compiler that had different but <em>more useful<\/em> error messages.  It&#8217;s time somebody wrote one.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>UPDATE 2010-04-08 CLANG\/LLVM comes through!. OK, I can believe I&#8217;m living in the 21st century now :-) All languages should include well-written error messages as part of their specification. These messages should include a link to a good explanation of the problem, and anything someone learning the language might want to know, like the design [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,11,8],"tags":[243,364,452],"class_list":["post-12","post","type-post","status-publish","format-standard","hentry","category-programming","category-research","category-usability","tag-compilers","tag-error-correction","tag-error-messages"],"_links":{"self":[{"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/posts\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/comments?post=12"}],"version-history":[{"count":2,"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/posts\/12\/revisions"}],"predecessor-version":[{"id":594,"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/posts\/12\/revisions\/594"}],"wp:attachment":[{"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/media?parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/categories?post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/tags?post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}