Post

Fullstack Ruby @fullstackruby@ruby.social
Fullstack Ruby @[email protected]@fullstack_ruby·
The obvious difference from Struct is that Data is immutable (aka no reassignment of member variables). You initialize with data, and then that's it. So perhaps we still need Struct after all, but Data is compelling for many use cases!
English
0
0
13
0
Paylaş