Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: YAML::XS perl/regexp (?u:(?u:

by ikegami (Patriarch)
on Dec 07, 2017 at 22:45 UTC ( [id://1205128]=note: print w/replies, xml ) Need Help??


in reply to Re^2: YAML::XS perl/regexp (?u:(?u:
in thread YAML::XS perl/regexp (?u:(?u:

and YAML::XS should make use of XS(XS_re_regexp_pattern) in universal.c

And how does one do that? XS(XS_re_regexp_pattern) creates the Perl sub re::regexp_pattern, so that's a very weird way of saying that YAML::XS should call Perl sub re::regexp_pattern.

Inevitably, this raises backcompat issues.

This can be addressed by storing them as a different type than perl/regexp (perl/regexp_plus_mods?).

Replies are listed 'Best First'.
Re^4: YAML::XS perl/regexp (?u:(?u:
by tinita (Parson) on Dec 08, 2017 at 15:48 UTC
    i think shmem was talking about regexp_pattern only available since perl 5.10, while YAML and YAML::XS aim to spport 5.8. I wonder how your suggeestion addresses that. Can you elaborate or did you mean something else?

      One can always fall back to the current method in older versions of Perl if the guts of the aforementioned sub can't be backported.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-03-28 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found