[wp-trac] [WordPress Trac] #10493: Allow closures as callbacks

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 6 14:12:56 UTC 2010


#10493: Allow closures as callbacks
-------------------------+--------------------------------------------------
 Reporter:  scribu       |       Owner:  scribu        
     Type:  enhancement  |      Status:  new           
 Priority:  normal       |   Milestone:  Future Release
Component:  General      |     Version:  2.9           
 Severity:  normal       |    Keywords:  has-patch     
-------------------------+--------------------------------------------------

Comment(by hakre):

 Replying to [comment:10 scribu]:
 > > Unless the system requirements do not call for that PHP version (WP
 core is far away from that), suggesting to use it is just wrong, it will
 actually defect exsiting code in case core code is changed based on this
 tickets suggestion.
 >
 > I agree that WP core is very far away from PHP 5.3 (that's why the
 milestone is set to Future Release), but I don't agree with the statement
 that this would negatively affect existing code.
 you misread me: What I meant is that exising code would be negativly
 affected by using closures with a WP PHP requirement of below 5.3 as of
 today and for the next 3-4(?) years.

 As written this ticket is highly theoretical. When 5.3 is minimum system
 requirement than every coder can actually use cosures because of the
 system requirements. I just do not see a need for a ticket here but maybe
 you can shed some light onto this. To showcase something in the future? I
 mean this trac is about the core code, right? Otherwise I could open
 tickets that showcase the possibilities we get with PHP 5 regarding
 objects, visibility and inheritance, exceptions and interfaces - something
 infact I already use in plugins w/o boosting the requirements too much.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10493#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list