<div dir="ltr"><div dir="ltr"><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px 0px 1.25em;color:rgb(55,65,81);font-family:Söhne,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:16px;background-color:rgb(247,247,248)">Hi, folks:<br></p><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px;color:rgb(55,65,81);font-family:Söhne,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:16px;background-color:rgb(247,247,248)">When I switched my primary programming language from C# to Java, I found myself perplexed by 'string comparison' (and still do at times). While string comparisons can sometimes become quite intricate, involving issues like case sensitivity, cultural nuances... most of the time, all that's needed is string1 == string2.</p><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px;color:rgb(55,65,81);font-family:Söhne,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:16px;background-color:rgb(247,247,248)">I discovered that a similar question was asked a decade ago (<a href="https://www.reddit.com/r/java/comments/1gjwpu/will_the_equals_operator_ever_be_fixed_with/" style="border:0px solid rgb(217,217,227);box-sizing:border-box;text-decoration-line:none">https://www.reddit.com/r/java/comments/1gjwpu/will_the_equals_operator_ever_be_fixed_with/</a>), with responses indicating that it's due to 'Backward compatibility,' and therefore, unlikely to change.
(Backward compatibility! We just keep piling new things on top of historical baggage, and for users coming from school or from other languages like C#, Python, C++, Rust, Golang, Kotlin, Scala, JavaScript, PHP, Rlang, Swift, Ruby, Dart... the top 20 languages according to PYPL, having to consult the so-called 'Java FAQ' can be frustrating.</p><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:1.25em 0px 0px;color:rgb(55,65,81);font-family:Söhne,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:16px;background-color:rgb(247,247,248)">But I believe that if something is amiss, it should be corrected to keep moving forward. It would be fantastic if this issue could be addressed in a new version of Java and an automatic conversion feature provided to fix places in user code that use String.equals.
(Similar to the JVM's preview feature switch)
Is the Class-File API a potential solution to this problem? Is my idea unrealistic?</p><p style="border:0px solid rgb(217,217,227);box-sizing:border-box;margin:0px 0px 1.25em;color:rgb(55,65,81);font-family:Söhne,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:16px;background-color:rgb(247,247,248)">
</p><div><div dir="ltr" class="gmail_signature">/* GET BETTER EVERY DAY */<br></div></div></div></div>