Comment Comment by viralpraxis One thing people usually do isD = Data.define do E = new endwhich is wrong since ’E‘ escapes (it becomes ´Object::E´)also, I agree that its kinda weird to use Ractor API but for us (service object gem) it was the best way to check if an argument is immutable (via Ractor.shareable?) parent viralpraxis 1 year ago
D = Data.define do E = new end
which is wrong since ’E‘ escapes (it becomes ´Object::E´)
also, I agree that its kinda weird to use Ractor API but for us (service object gem) it was the best way to check if an argument is immutable (via Ractor.shareable?)