3 ms·
One thing people usually do is D = Data.define do E = new end which is wrong since ’E‘ escapes (it becomes ´Object::E´) also, I agree that its kinda weird
by viralpraxis 2y ago
One thing people usually do is
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?)