Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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. :-)

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]
[erix]: they've stuck nuclear missiles in Kaliningrad - they can just reach Berlin :)
[LanX]: naaah! Putin wouldn't nuke all the Russians in Berlin
[Your Mother]: Putin is a bad guy but heís not that kind of bad guy. (Who would launch.)
[erix]: fortunately, Putin seems to be ill -- or at least, they're building a hospital for him and his cronies in Moscow
[erix]: nobody knows what kind it takes :)
[erix]: I say his seems a face that launches a thousand missiles :)
[Your Mother]: I say I do. :P
[Your Mother]: Missiles would be an idiotís play. Putin is many things but he is not an idiot.
[erix]: I like the idea of the trumps troup of imbeciles growing slightly nervous now their incompetence will be tested
[erix]: you seem forget there is another idiot coming :)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2017-01-20 00:56 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (173 votes). Check out past polls.