<div dir="ltr">for my understanding it could refer to adding a single element to a list<div><br></div><div>var list = List[1, 2, 3];</div><div>var expandedList = list + 3 // [1, 2, 3, 3] this would not be allowed</div><div><br></div><div>But arithmetic operations between concrete data structures seems more likely since intersection, difference, inclusión and exclusion have mathematical meaning, also it would allow for expressive libraries for linear algebra (very used in science and engineering for signal processing for example)</div><div><br></div><div>Not allowing for operator overloading ****between**** data structures would be a huge loss IMHO. Java is already lagging behind not having built-in complex and unsigned numeric types. These Type classes would allow Java to close the gap very quickly.</div><div><br></div><div>But this is all speculative, not having </div><div><br></div><div>Best regards</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">El jue, 21 ago 2025 a la(s) 10:18 p.m., David Alayachew (<a href="mailto:davidalayachew@gmail.com">davidalayachew@gmail.com</a>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Didn't the talk shoot this exact idea down? At 53:45 on the video -- <a href="http://youtu.be/Gz7Or9C0TpM" rel="noreferrer" target="_blank">youtu.be/Gz7Or9C0TpM</a><div dir="auto"><br></div><div dir="auto">I am still watching the recording now, so maybe he approves it later.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 21, 2025, 7:02 PM david Grajales <<a href="mailto:david.1993grajales@gmail.com" rel="noreferrer" target="_blank">david.1993grajales@gmail.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"><div dir="ltr"><p>Dear Amber team,</p>
<p>I hope this message finds you well.</p>
<p>I recently watched Brian’s talk "Growing the java language" and I found the discussion on operator overloading particularly interesting. I appreciated how the proposed approach allows operator overloading in a more restricted and safer way, by enforcing algebraic laws.</p>
<p>This immediately made me think about potential use cases for collections—for example, using operators for union (<code>+</code>), difference (<code>-</code>), exclusion, and similar operations. However, since this feature is intended to be limited to value classes, and the current collection classes are not value-based, it seems they would not benefit from these new operator overloading capabilities.</p>
<p>My question is: are there any plans to enhance the collections framework with value-class-based variants, so that they could take advantage of this feature? Or is this idea (or any other related to the use case) not currently under consideration?</p><p>I know this is still under discussion, I am just curious about this particular use case.</p>
<p>Thank you very much for your work and for your time.</p>
<p>Best regards, and always yours.</p></div>
</blockquote></div>
</blockquote></div>