<div dir="ltr"><div dir="ltr">On Wed, Feb 15, 2023 at 10:17 AM Ron Pressler <<a href="mailto:ron.pressler@oracle.com">ron.pressler@oracle.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 style="overflow-wrap: break-word;">
<div dir="auto" style="overflow-wrap: break-word;">I've published a JEP draft, Implicit Classes and Enhanced Main Methods (Preview) (<a href="https://openjdk.org/jeps/8302326" target="_blank">https://openjdk.org/jeps/8302326</a>)
<div>based on Brian’s article, Paving the On-Ramp (<a href="https://openjdk.org/projects/amber/design-notes/on-ramp" target="_blank">https://openjdk.org/projects/amber/design-notes/on-ramp</a>).</div></div></div></blockquote><div><br></div><div>I like this. Comments:</div><div><br></div><div>Outside the scope of this JEP, but: a smarter launch protocol may be useful for reasons beyond on-ramping. For example, instead of only looking for default constructors, you could look for a constructor taking an object of type <span style="font-family:monospace">LauchEnvironment</span>, which is something to be suitably defined.<br></div></div><div class="gmail_quote"><br></div><div class="gmail_quote">The implicit class idea scares me a bit. One issue is that it could turn invalid code into "working" code inadvertently.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Can "floating" methods in the implicit class be declared scattered across multiple random source files or do they have to all be in one file? If so, which one?</div><div class="gmail_quote"><br></div><div class="gmail_quote">Is there a good reason why implicit class support should NOT be restricted to JEP 330 mode only?</div><div class="gmail_quote"><br></div><div class="gmail_quote">-Archie<br></div><div class="gmail_quote"><br></div>-- <br><div dir="ltr" class="gmail_signature">Archie L. Cobbs<br></div></div>