rfc:shortsyntaxforarrays:vote
Square bracket array shortcut - keys and values are separated by colons
$a = [1, 2, 3]; $b = ['foo': 'orange', 'bar': 'apple', 'baz': 'lemon'];
+1
- shein
- iliaa
- cstockton
-1
None
Square bracket array shortcut - keys and values are separated by double arrows
$a = [1, 2, 3]; $b = ['foo' => 'orange', 'bar' => 'apple', 'baz' => 'lemon'];
+1
- zeev (would consider parentheses for max compatibility with current syntax, minus the array keyword, i.e. (1, 2, 3))
- patrickallaert
- colder
- pierrick
- aharvey
- gwynne
- tyrael
- pajoye
- chregu
- dsp
- salathe
- rdohms
- guilhermeblanco
- davidc
- hartmut
- mfonda
- davidvega
- mgf
- shiflett
- stas
- andi
- stewartlord
- mbeccati
-1
None
-1 on both syntax
- cataphract
- dtajchreber
- derick
Current votes, but without info about which syntax to choose:
+1
- kalle
- brianlmoon
- stas
- iliaa
- rasmus
- fmk
- sean (but please see the object PLUS array literals RFC)
rfc/shortsyntaxforarrays/vote.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1