Issue #16240 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Open to Rejected

see https://redmine.ruby-lang.org/issues/4818

----------------------------------------
Feature #16240: Are all objects and methods marshalable
https://bugs.ruby-lang.org/issues/16240#change-81930

* Author: mattumd (Matt Zand)
* Status: Rejected
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------

As I work with objects, some of them are not marshaled. Maybe there should be a method to tell whether an object is marshalable or not. 

See below example:

hash = Hash.new {|h,k| k * 2}

this hash can't be marshaled because it has a default proc. If existing such method:

Marshal.marshalable?(hash) #=> method "Marshal.marshalable?"
hash.marshalable? #=> method "Kernel#marshalable?"

If you think the method name hard to spell, maybe get a synonym "dumpable?"

Thanks,


Matt
https://coding-bootcamps.com/
https://myhsts.org/
https://dcwebmakers.com/




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>