snazy opened a new issue, #568:
URL: https://github.com/apache/polaris/issues/568

   ### Describe the bug
   
   Basically all object types in Polaris have mutable attributes, either 
directly (via setters) or indirectly (via collections). This is known to be 
prone to programming issues. All value types should really be immutable types - 
none of the elements of a value type should be mutable. Libraries like 
[immutable](https://immutables.github.io/) are built to support this.
   
   [immutable](https://immutables.github.io/) is superior to both Java records 
and Lombok. While the direct attributes of Java records are not changeable, the 
objects (collections!) referenced from Java records are not enforced to be 
immutable. Lombok provides similar functionality than immutables, but adds 
bytecode (and functions/methods) that is not present in the source code, which 
makes for example debugging harder.
   
   ### To Reproduce
   
   _No response_
   
   ### Actual Behavior
   
   _No response_
   
   ### Expected Behavior
   
   _No response_
   
   ### Additional context
   
   _No response_
   
   ### System information
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to