RFR: [type-classes] JDK-8376823: Add prototype polynomial class [v6]

Chen Liang liach at openjdk.org
Mon Feb 2 21:39:42 UTC 2026


On Mon, 2 Feb 2026 20:40:20 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> Add a simple polynomial class over doubles as an example of a ring.
>
> Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Improve comments and refactor.

Good that we are encapsulating degree with methods; might add a comment to indicate this intention, like no direct access for lazy fields.

Also, I noted we use (`this.`)`coeffs.length` a lot. How is it distinct from `deg()`? Hope we can clarify on that as well.

Otherwise, looks nice in concept.

-------------

PR Comment: https://git.openjdk.org/valhalla/pull/2004#issuecomment-3837511052


More information about the valhalla-dev mailing list