Skip to content

Add support for deep freezing Data classes#40

Open
cllns wants to merge 5 commits into
dkubb:mainfrom
cllns:add-support-for-deep-freezing-data-classes
Open

Add support for deep freezing Data classes#40
cllns wants to merge 5 commits into
dkubb:mainfrom
cllns:add-support-for-deep-freezing-data-classes

Conversation

@cllns

@cllns cllns commented Aug 14, 2025

Copy link
Copy Markdown

Note that this builds on #39, which should be merged first.

Data, introduced in Ruby 3.2, is a great step toward immutability. However, it only provides shallow immutability. It'd be great if ice_nine supported deep freezing Data objects so they are deeply immutable.

@cllns

cllns commented Dec 19, 2025

Copy link
Copy Markdown
Author

Ping :)

Also, not sure if you saw, but there's a Ruby issue to add deep_freeze to the language 🤩 https://bugs.ruby-lang.org/issues/21665

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant