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

Re: Re: Re: Re: (3): Perl 6 will make amends (was:Perl's Bad Ideas)

by TheDamian (Priest)
on Apr 10, 2002 at 00:20 UTC ( #157908=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: (3): Perl 6 will make amends (was:Perl's Bad Ideas)
in thread Perl's Bad Ideas

To do this kind of context detection, the new want function would need to be able to report that a particular closure was called in the argument list of a particular subroutine.

That is, you'd need to be able to write something like:

sub findone (&matcher, *@list) { ... do_caching() if want.arg_of =~ ('while','until'); }

I don't see any reason why this kind of (compile-time discernible) information shouldn't be made available, especially since creating new control structures via subroutines will likely be far more common in Perl 6.

I'll see what Larry thinks.

Replies are listed 'Best First'.
Re: (8): Perl 6 will make amends (was:Perl's Bad Ideas)
by shotgunefx (Parson) on Apr 10, 2002 at 00:59 UTC
    I hope so. What i did in the case of findone was use Filter::Simple (Thanks) to try and detect the usage and change it to a different function made for non-iterative calls when appropriate.

    -Lee

    "To be civilized is to deny one's nature."
    Update
    My eyes must have glazed over it when I read it the first time.
    "I'll see what Larry thinks.", is this place great or what?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://157908]
help
Chatterbox?
[Corion]: r@j: Have you printed what '$Process_java' prints? How will Perl know that you mean a variable named $Process and not a variable named $Process_java? Also, why doesn't Perl complain when you're using strict in your program?
[erix]: thanos1983: s/ For login purposes / For logging purposes / # I suppose ...
[r@j]: Actully $Process_Java this is getting from config file

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2017-10-23 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (280 votes). Check out past polls.

    Notices?