rfc:shortsyntaxforarrays

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
rfc:shortsyntaxforarrays [2008/05/29 16:04] thezapperrfc:shortsyntaxforarrays [2011/08/06 19:28] – [Request for Comments: Short syntax for arrays] stas
Line 1: Line 1:
 ====== Request for Comments: Short syntax for arrays ====== ====== Request for Comments: Short syntax for arrays ======
-  * Version: 0.+  * Version: 0.9
-  * Date: 2008-27-05+
   * Author: Ryusuke Sekiyama <rsky0711 at gmail . com>, Sebastian Deutsch <sebastian.deutsch at 9elements . com>   * Author: Ryusuke Sekiyama <rsky0711 at gmail . com>, Sebastian Deutsch <sebastian.deutsch at 9elements . com>
-  * Status: Under Discussion +  * Status: Implemented in 5.4 
-  * First Published at: 2008-01-10 +  * First Published at: Jan 10, 2008 
-  * Votes (+25/-19):  +  * Last update: May 9, 2011 
-    * Pro: Andrei Zmievski, Andi Gutmans, Alexey Zakhlestin, Brian Moon, Carl P. Corliss, Darius Jahandarie, Eric Coleman, Giedrius D, Kalle Sommer Nielsen, Larry Garfield, Max Antonov, Mike Ford, Pierre Joye, Rasmus Lerdorf, Ryusuke Sekiyama, Sam Barrow, Sebastian Deutsch, Stanislav Malyshev, Taylor Luk, Stefan Marr, Hans Ahlin, Karoly Negyesi, Edin Kadribasic, Guilherme Blanco, Jonathan-Bond Caron + 
-    * Contra: Antony Dovgal, David Coallier, Derick Rethans, Geoffrey Sneddon, Hannes Magnusson, Jani Taskinen, Lokrain, Tomi Kaistila, David Zühlke, Felipe Pena, Lukas Kahwe Smith, Richard Quadling, Maciek Sokolewicz, Marcus Boerger, Philip Olson, Ilia Alshanetsky, David Soria Parra, Daniel Brown, Jochem Maas +**2008 Votes**  
-    * Note: I added the names going through the internals list archive till mid 2007 - If I did something wrong, write me a mail - i will fix it immediatelyIf you're name is missing on this vote you can also drop me a note or simply edit this wiki page. (Sebastian)+ 
 +  * Votes (+9/-14):  
 +    * Pro: Andrei Zmievski, Andi Gutmans, Pierre Joye, Rasmus Lerdorf, Stanislav Malyshev, Brian Moon, Kalle Sommer Nielsen, Edin Kadribasic, Philip Olson 
 +    * Contra: Antony Dovgal, Derick Rethans, Jani Taskinen, Lokrain, Felipe Pena, Marcus Boerger, David Soria Parra, Johannes Schlüter, Maciek Sokolewicz, Ilia Alshanetsky, Daniel Brown, Jochem Maas, Hannes Magnusson, David Coallier 
 +  * Userland Votes (+17/-3): 
 +    * Pro: Sebastian Deutsch, Ryusuke Sekiyama, Stefan Marr, Alexey Zakhlestin, Carl P. Corliss, Darius Jahandarie, Giedrius D, Eric Coleman, Max Antonov, Mike Ford, Larry Garfield, Sam Barrow, Taylor Luk, Hans Ahlin, Karoly Negyesi, Guilherme Blanco, Jonathan-Bond Caron 
 +    * Contra: Geoffrey Sneddon, Tomi Kaistila, David Zühlke 
 +  * **Note: This list was created by guessing (cvs name vsreal name) who has commit rights - please correct mistakes**
  
 This RFC will discuss an language enhancement for simple and easy array definition. This RFC will discuss an language enhancement for simple and easy array definition.
 +
 +===== Update: May 2011 =====
 +
 +This topic has come up again on the list. 
  
 ===== Introduction ===== ===== Introduction =====
Line 42: Line 52:
 The first solution is more compact: http://www.opendogs.org/pub/php-5.3dev-080109-sbar.patch \\ The first solution is more compact: http://www.opendogs.org/pub/php-5.3dev-080109-sbar.patch \\
 The second solution is more "The PHP Way": http://www.opendogs.org/pub/php-5.3dev-080109-sbar2.patch \\ The second solution is more "The PHP Way": http://www.opendogs.org/pub/php-5.3dev-080109-sbar2.patch \\
 +
  
 ===== Pro / Contra ===== ===== Pro / Contra =====
  
-Pro+Pro and contra arguments that were derived from the list. 
 + 
 +==== Pro ==== 
   * Good for framework development when dealing with long parameterlists    * Good for framework development when dealing with long parameterlists 
   * Other web languages have similar syntax   * Other web languages have similar syntax
   * Readable   * Readable
-Contra+ 
 + 
 +==== Contra ==== 
   * Yet another alias   * Yet another alias
   * Would take distinctness from []   * Would take distinctness from []
   * Not searchable through search engines   * Not searchable through search engines
   * Unreadable   * Unreadable
 +  * Patch may be difficult to maintain in future
 +
 +===== Conclusion =====
 +
 +This patch will not be accepted because slight majority of the core developers voted against. Though if you take a accumulated mean between core developers and userland votes seems to show the opposite it would be irresponsible to submit a patch witch is not supported or maintained in the long run.
  
 ===== Discussion on the List ===== ===== Discussion on the List =====
 +
   - 2003-11-04 : [[http://markmail.org/message/rfolc6gxjmit6nes|Proposal: Array syntax]]     - 2003-11-04 : [[http://markmail.org/message/rfolc6gxjmit6nes|Proposal: Array syntax]]  
   - 2007-02-03 : [[http://markmail.org/message/67nff7mn4kqdbtfm|Syntactic improvement to array]]   - 2007-02-03 : [[http://markmail.org/message/67nff7mn4kqdbtfm|Syntactic improvement to array]]
Line 61: Line 84:
   - 2008-01-11 : [[http://markmail.org/message/c4jwv7dl2uufxuxh|SUMMARY: Array syntax]]   - 2008-01-11 : [[http://markmail.org/message/c4jwv7dl2uufxuxh|SUMMARY: Array syntax]]
   - 2008-05-21 : [[http://markmail.org/message/rsi4welftwou24p3|Short syntax for array literals]]   - 2008-05-21 : [[http://markmail.org/message/rsi4welftwou24p3|Short syntax for array literals]]
 +  - 2011-05-09 : [[http://markmail.org/message/fx3brcm4ekh645se|5.4 again]]
rfc/shortsyntaxforarrays.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1