rfc:shortsyntaxforfunctions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
rfc:shortsyntaxforfunctions [2011/06/01 13:25] – created tony2001rfc:shortsyntaxforfunctions [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Request for Comments: How to write RFCs ======+====== Request for Comments: Short syntax for functions ======
   * Version: 1.0   * Version: 1.0
   * Date: 2011-06-01   * Date: 2011-06-01
Line 8: Line 8:
  
  
-This RFC is a parody on shortsyntaxforarrays RFC.+This RFC is a parody on [[https://wiki.php.net/rfc/shortsyntaxforarrays | shortsyntaxforarrays RFC]].
  
 ===== Introduction ===== ===== Introduction =====
Line 15: Line 15:
 The purpose of RFCs are to work collaboratively towards a specification and finally an implementation of an idea. The purpose of RFCs are to work collaboratively towards a specification and finally an implementation of an idea.
  
-==== Why do we need RFCs? ====+===== Syntax =====
  
-They serve to keep a summary of on going discussionsThis way people can keep an overview of the state of the discussion. Even if never put into place in the end, they also serve as a historical log of discussions that is much easier to read compared to mailinglist threads.+We might just replace the current **function <name>(<parameters>) {<body>}** syntax with something shorter and better. 
 +I'd personally propose to use dashes and dots for everything of the aboveIt's short and you can read it really fast.
  
-===== Syntax ===== 
  
-We might just replace the current function <name>(<parameters>) {<body>} syntax with something shorter and better. +Example code: 
-I'd personally propose to use dots for everything of the above. It'short and you can read it really fast.+ 
 +<code php> 
 +function some_long_function_name($array_parameter_omg, $some_more) 
 +{ 
 + --here_be_dragons-- 
 +
 +</code
 + 
 +New short non-ugly easily readable example code:
  
 +<code php>
 +. .[., .].
 +.
 + --...._.._......--
 +.
 +</code>
 ===== Proposal and Patch ===== ===== Proposal and Patch =====
  
Line 30: Line 44:
 ===== Changelog ===== ===== Changelog =====
  
-2011-06-01 Initial revision.+  - 2011-06-01 : Changed the RFC to include dashes. 
 +  - 2011-06-01 Initial revision.
rfc/shortsyntaxforfunctions.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1