<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>"Julian Waters" <tanksherman27@gmail.com><br><b>To: </b>"valhalla-dev" <valhalla-dev@openjdk.org><br><b>Sent: </b>Monday, May 22, 2023 4:41:59 PM<br><b>Subject: </b>What happened to primitive classes?<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">Sorry if this is a silly question, but I recently browsed through JEP-401 to find that all references to primitive classes have been completely scrubbed, as if they were never there at all. I haven't been keeping up to date with Valhalla lately, so I can't tell what the changes (if any) have been. Did they move elsewhere or were they changed to something else?</div></blockquote><div><br></div><div>Yes, all values classes are now nullable by default.<br data-mce-bogus="1"></div><div>The equivalent of the old primitive class is a non-nullable value class with a default instance.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>If you declare the value class Range like the first example of the JEP-401, Range! (not the '!') is what is the closest to the old primitive class. <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"><br><div>best regards,</div><div>Julian</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>