[wp-trac] [WordPress Trac] #13399: Code Improvement: Consider print instead of echo

WordPress Trac wp-trac at lists.automattic.com
Sat May 15 14:17:58 UTC 2010


#13399: Code Improvement: Consider print instead of echo
--------------------------+-------------------------------------------------
 Reporter:  hakre         |        Owner:         
     Type:  defect (bug)  |       Status:  closed 
 Priority:  normal        |    Milestone:         
Component:  General       |      Version:         
 Severity:  normal        |   Resolution:  invalid
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by hakre):

 Naturally I saw that, but that's not the point I wanted to make.

 If it's for the shortcut (by typing, no processing wise), I've made
 [http://core.trac.wordpress.org/ticket/13395#comment:5 another suggestion
 in the other ticket].

 The problem I have with that (and what I wanted to say with my "pretty
 useless" comment) is that the introduction of new functions that do not
 provide new functionality are just useless.

 Next to this that implementation has some overhead.

 I can understand that you do not want to type much, but cryptic function
 names must not be seen as very helpful either.

 But there are pros as well: Hackers, that now the project can save
 themselves some keys to type, and it can compress the code-size:

 {{{echo _x}}} (7 bytes)

 {{{_ex}}} (3 bytes), that's a 233% saving.

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


More information about the wp-trac mailing list