-
-
Notifications
You must be signed in to change notification settings - Fork 0
[feature] immutable Lists and Maps #22
Copy link
Copy link
Open
Labels
analyzerThis issue is related to the analyzerThis issue is related to the analyzercompilerThis has to do with the bytecode compilerThis has to do with the bytecode compilerdocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request
Metadata
Metadata
Assignees
Labels
analyzerThis issue is related to the analyzerThis issue is related to the analyzercompilerThis has to do with the bytecode compilerThis has to do with the bytecode compilerdocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request
there should be a way to declare a list immutable. For example, a new keyword
immutablecould do the job. Or maybe extra ImmutableList and ImmutableMap types.As I understand it, declaring a listidk man the docs are assfinalonly means you can't assign a new list to the variable, while still being able to change the contents of the list.