Subject: | Custom types using bless |
XML::RPC::Fast allows user to define custome types using convention
"sub {string => $o}.
However this makes XML::RPC::Fast incompatible with modules that use
the more common convention "bless (\$o, string)". One example such a
module is YAML::XS.
Also debugging is more difficult with the first notation. For the first
Data::Dumper prints:
$VAR1 = sub { "DUMMY" } # practically no information
And for the second it prints:
bless( do{\(my $o = '12345')}, 'string' ) # All information
Proposed improvements:
- should support both above conventions to define custom types.
- per call or global option to configure the default type for all
scalars