Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: YAML's No in Perl

by audreyt (Hermit)
on Mar 13, 2006 at 19:12 UTC ( #536344=note: print w/ replies, xml ) Need Help??

in reply to YAML's No in Perl

use YAML::Syck; $YAML::Syck::ImplicitTyping = 1; Load("No"); # undef
I had ImplicitTyping on, but Ingy told me it should be off by default to save time and reduce confusion and improve compatibility. So... Blame him. :-)

Comment on Re: YAML's No in Perl
Download Code
Replies are listed 'Best First'.
Re^2: YAML's No in Perl
by dgaramond2 (Monk) on Mar 14, 2006 at 01:27 UTC

    Hi audrey.

    Save time? Execution time? Please explain... I think YAML::Syck is fast enough for all of my needs.

    Improve compatibility with what, older Perl modules (all of which are 'alpha' or 'beta' and should not guarantee API/backwards compatibility anyway)? I would vote for better interoperability with the other YAML-using languages, as it is one of YAML's biggest strength.

    Reduce confusion? Hm, that's not what I experienced. Implicit typing is also one of YAML's basic features.

    So, turn it and keep it on please :)

      Okay, I did add a prominient notice to YAML::Syck 0.38 and credited you for it in the ChangeLog. Thanks!
        Sweet, thanks! I'm ready to be blamed for this in the future :-)
Re^2: YAML's No in Perl
by bsb (Priest) on Jul 23, 2006 at 23:49 UTC
    I think Ingy's right, implicit typing should be off by default. It caused all kinds of bugs including turning an md5 hash string that happened to match /^\d+e\d+$/ into NaN.

    Implicit typing should only be enabled if it doesn't interfere with round-tripping, Perl's polymorphic scalars seem to me to make this impossible.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://536344]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2015-11-27 15:04 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (730 votes), past polls