<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<font size="4" face="monospace">This concept has been discussed in
several different forms on amber-spec-experts and amber-dev (for
example, see the thread on "Scope for JEP 468: Derived record
creation".) <br>
</font><br>
<div class="moz-cite-prefix">On 3/27/2024 10:23 PM, Jos Angel George
wrote:<br>
</div>
<blockquote type="cite" cite="mid:CANWo+w+V9vW2rOaP7Nm08V_9FXvV4Fjyq9pQEQ7GjngMPvo-LQ@mail.gmail.com">
<div dir="ltr">
<div>Hi Amber team,</div>
<div><br>
</div>
<div>Super excited about JEP 468!</div>
<div><br>
</div>
<div>Can we use the <font style="" face="monospace">with</font>
syntax for <font face="monospace">Constructor</font> as well?
This syntax feels very natural compared to the currently
proposed record derivation syntax (<font face="monospace">Builder</font>
vs <font face="monospace">toBuilder</font>). For me,
this will be the final missing piece to ditch a library like
Lombok.</div>
<div><br>
</div>
<div><font face="monospace" color="#3d85c6">record Color(int r,
int g, int b) { }</font></div>
<div><font face="monospace" color="#3d85c6"><br>
</font></div>
<div><font face="monospace" color="#3d85c6">Color c = Color with
{</font></div>
<div><font face="monospace" color="#3d85c6"> r = 100;</font></div>
<div><font face="monospace" color="#3d85c6"> g = 50;</font></div>
<div><font face="monospace" color="#3d85c6"> b = 200;</font></div>
<div><font face="monospace" color="#3d85c6">}</font></div>
<div><font face="monospace" color="#3d85c6"><br>
</font></div>
<div><font face="monospace" color="#3d85c6">Color derived = c
with { r = 75; }</font></div>
<div><br>
</div>
<div>
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">- Jos Angel George</div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>