<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Gavin Bierman" <gavin.bierman@oracle.com><br><b>To: </b>"Eirik Bjørsnøs" <eirbjo@gmail.com><br><b>Cc: </b>"amber-dev" <amber-dev@openjdk.org><br><b>Sent: </b>Thursday, October 24, 2024 4:50:20 PM<br><b>Subject: </b>Re: New candidate JEP: 495: Simple Source Files and Instance Main Methods (Fourth Preview)</blockquote><div><br></div><div>Hello Gavin,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><br></blockquote></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">
Point taken but the title reflects the language feature(s) being added. At the moment, according to the JLS (7.3), a *compilation unit* is the top-level symbol for Java programs in the grammar. A compilation unit can be “ordinary” (containing a top level class
 or interface) or “modular” (containing a module declaration). What this JEP is proposing is a new sort of compilation unit. In the draft spec we call this a “simple" compilation unit, to contrast with “ordinary”. As no human says the phrase “compilation unit”,
 but rather everyone informally speaks of “source files”, we ended up calling these new sorts of source files “simple”. 
<div><br>
</div>
<div>I guess one could say “smoother on-ramp”, or any of the alternatives, was similarly “...subjective, vague, generic and unquantifiable”. It’s hard but in the end we settled on using the two significant features (new sort of source file, new sort of main
 method) as the title. It’s a mouthful, but hopefully the community can help people interested in “the on-ramp stuff I heard about” navigate to the right JEP.</div></blockquote><div><br></div><div>Reading the JLS changes, i also think that "simple" is not the best term, what about "primary compilation unit", the one you use before moving to an ordinary compilation unit ?<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">
<div><br>
</div>
<div>Hope this helps,</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Gavin</div></blockquote><div><br></div><div>regards,<br data-mce-bogus="1"></div><div>Rémi<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div><br>
<div><br>
<blockquote>
<div>On 22 Oct 2024, at 21:04, Eirik Bjørsnøs <eirbjo@gmail.com> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div dir="ltr">
<div>Hi!</div>
<div><br>
</div>
I love this feature! However, nothing is ever simple in programming. Especially for beginners.
<div><br>
</div>
<div>"Simple" is subjective, vague, generic and unquantifiable. "Simpler" would be more honest, but perhaps it would be possible to come up with something that actually describes this awesome feature?</div>
<div><br>
</div>
<div>The JEP summary and goals sections have some bits to start with: "smoother on-ramp", "programming in the small", "beginner friendly". "reduced ceremony"  "small programs". </div>
<div><br>
</div>
<div>Cheers,</div>
<div>Eirik.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div> </div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Oct 22, 2024 at 5:38 PM Mark Reinhold <<a href="mailto:mark.reinhold@oracle.com" target="_blank">mark.reinhold@oracle.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<a href="https://openjdk.org/jeps/495" rel="noreferrer" target="_blank">https://openjdk.org/jeps/495</a><br>
<br>
  Summary: Evolve the Java programming language so that beginners can<br>
  write their first programs without needing to understand language<br>
  features designed for large programs.  Far from using a separate<br>
  dialect of the language, beginners can write streamlined declarations<br>
  for single-class programs and then seamlessly expand their programs<br>
  to use more advanced features as their skills grow.  Experienced<br>
  developers can likewise enjoy writing small programs succinctly,<br>
  without the need for constructs intended for programming in the large.<br>
  This is a preview language feature.<br>
<br>
- Mark</blockquote>
</div>
</div>
</blockquote>
</div>
<br>
</div><br></blockquote></div></div></body></html>