<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>"Hunor Szegi" <hunor.szegi@gmail.com><br><b>To: </b>"amber-dev" <amber-dev@openjdk.org><br><b>Sent: </b>Tuesday, April 11, 2023 10:29:33 PM<br><b>Subject: </b>Re: New candidate JEP: 445: Flexible Main Methods and Anonymous Main Classes (Preview)<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;"><div dir="ltr"><div class="gmail_default" style="font-size:small"><div class="gmail_default">Hi All,</div><div class="gmail_default"><br></div><div class="gmail_default">Thank you for this new proposal, I like the idea of JEP 445 with the flexible main methods. My only concern is the implicit "static" keyword. Which means the initially learned main method format should be modified later, so this doesn't really support the gradual learning curve. It is even a little bit against the goal "Do not introduce a separate beginner's dialect of Java."</div></div></div></blockquote><div><br></div><div>There is no implicit static.<br data-mce-bogus="1"></div><div>It works the other way around, the launcher first checks for a static main and if none is found, it checks for a non static main and a default constructor.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>So I repeat, there is no implicit static.</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 dir="ltr"><div class="gmail_default" style="font-size:small"></div></div></blockquote><div>[...]<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 dir="ltr"><div class="gmail_default" style="font-size:small"><div class="gmail_default"><br></div><div class="gmail_default">Thanks,</div><div class="gmail_default">Hunor</div></div></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></div></div></body></html>