<div dir="ltr"><div dir="ltr"><div dir="ltr">On Thu, Nov 7, 2024 at 2:47 PM Kenneth Fogel <<a href="mailto:kfogel@dawsoncollege.qc.ca" target="_blank">kfogel@dawsoncollege.qc.ca</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>





<div lang="EN-CA">
<div>
<p class="MsoNormal"><span style="font-size:11pt">I dislike Python because it is an untyped language, but we cannot ignore that:</span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Python: loan = input("Loan: ")<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">makes more sense to those starting out than:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Java: var loan = Double.parseDouble(readln("Loan: "));</span></p></div></div></div></blockquote><div><br></div><div>I perceive a disconnect here between the objective and the assumed mechanism to achieve that objective.</div><div><br></div><div>If the objective is "Provide a friendly environment for people starting out learning Java to get familiar with it", why does the mechanism have to be "Make changes to the language" ?<br></div><div><br></div><div>For example, couldn't you use JShell to build a sufficiently "friendly environment"?<br></div><div><br></div><div style="margin-left:40px"><span style="font-family:monospace">$ cat friendly.jsh</span></div><div style="margin-left:40px"><span style="font-family:monospace">double input(String prompt) throws Exception {<br>    System.console().printf("%s", prompt);<br>    return Double.parseDouble(System.console().readLine());<br>}</span></div><div style="margin-left:40px"><span style="font-family:monospace">$ jshell friendly.jsh <br>|  Welcome to JShell -- Version 23<br>|  For an introduction type: /help intro<br><br>jshell> var x = input("Loan: ")<br>Loan: 123<br>x ==> 123.0</span></div><div><br></div><div>Etc.</div><div><br></div><div>-Archie<br></div><div><br></div></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Archie L. Cobbs<br></div></div>
</div>