Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re^4: RFC: Transactions.pm

by Juerd (Abbot)
on Apr 28, 2003 at 15:03 UTC ( [id://253715]=note: print w/replies, xml ) Need Help??


in reply to Re^4: RFC: Transactions.pm
in thread RFC: Transactions.pm

it occured to me that this is where Perl6 user exposed parsing would allow us to superimpose such features on the language seamlessly, without all the caveats inherent to Perl5 solutions.

You won't have to change the grammar or have a "parsed" trait on an operator. Every block is a closure, so something like this will work:

multi transaction (Object $object, &block) { ...; block(); ...; }
transaction $dbh -> { ... }
(Note: this is probably wrong, but I can't check it since I don't have a working Perl 6 interpreter :)

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 19:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found