Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: This is really a Perl BUG with my?! Need some advice...

by gmpassos (Priest)
on Jan 24, 2004 at 17:45 UTC ( [id://323851]=note: print w/replies, xml ) Need Help??


in reply to Re: This is really a Perl BUG with my?! Need some advice...
in thread This is really a Perl BUG with my?! Need some advice...

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re: Re: This is really a Perl BUG with my?! Need some advice...

Replies are listed 'Best First'.
Re: Re: Re: This is really a Perl BUG with my?! Need some advice...
by chromatic (Archbishop) on Jan 24, 2004 at 19:59 UTC
    I don't thin that this is classified as a closure

    All Perl subroutines that use lexical variables are closures.

    A warning would be good, though.

Re: Re: Re: This is really a Perl BUG with my?! Need some advice...
by jonadab (Parson) on Jan 24, 2004 at 18:37 UTC
    undefined behavior is a Bad Thing(TM)...
    This is why I think that is a bug!

    The term "bug" is usually reserved for certain specific types of Bad Things, though. C requires the programmer to micromanage memory, which is absolutely without question a Very Bad Thing, but nobody considers it a bug, because C was designed that way. (When C was designed, most languages were that way, because computer memory was a more valuable resource than programmer time. The notable exception to this is Lisp, which already had the garbage collection we're going to be getting in Perl6, but Lisp was way ahead of its time.)

    And I don't think that this is classified as a closure

    No, I didn't mean to imply that it was. I was using closures as another example of a case where Perl is doing what it was designed to do, but not everyone understands it immediately and it's certainly not a bug.


    $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-23 14:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found