<div dir="ltr"><div dir="ltr">On Sun, Dec 3, 2023 at 11:01 AM David Alayachew <<a href="mailto:davidalayachew@gmail.com">davidalayachew@gmail.com</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:monospace">Here are some thoughts I had about Checked Exceptions, plus an idea.<br></div></div></blockquote><div><br></div>Some random thoughts/opinions on this idea...<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Let's take the big picture view. Writing Java source code is basically a serialization exercise: in your head you have some complicated, tree-like control flow & logic data structure but to express that in Java you have to convert it into a linear sequence of UTF-16 codes.</div><div class="gmail_quote"><br></div><div class="gmail_quote">So in a sense the real "problem" you are addressing is that we're trying to jam a tree/graph data structure into a linear sequence. As a result, there's never going to be a "pretty" way to do it, only different ways of doing it adequately.<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">In other words, the best we can hope for is something well-defined and unambiguous that everyone can understand and agree on, and then get on with our lives. And that's what we already have.<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Could the Java language be "compressed" in various ways so that we have to type fewer characters? Yes! There are lots of ways to do that, including your suggestion. Another idea is that we could replace "class", "interface", and "protected' with "cls", "infc", and "prtd". But where do you stop? And what is your criteria for stopping?<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">The philosophy behind the design of Java (as far as I can infer it) is to prioritize logical clarity, not brevity. So we stop when we get something that is reasonably adequate.<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">As has been said before: "If what you want is a language for algorithm compression, try Perl" :)<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">-Archie<br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Archie L. Cobbs<br></div></div>