On 08/04/16 12:17, Rowan Collins wrote:
On 08/04/2016 08:43, Ivan Enderlin wrote:
Most of the time, arrays or vectors constructing are represented by
`[…]` symbols while destructing are represented by `{…}`. What your
point of view or arguments here?
When you say "most of the time", do you mean in other languages?
Yes.
Which other languages?
Javascript, Rust, Python… I don't know the exact syntax but I see this
kind of syntax often. Actually, both exist. I am just curious and wonder
if you think about using another syntax, and if yes, why choosing this one.
Importantly, do those other languages have similar semantics to PHP?
I'm reminded me of the suggestion that PHP short array syntax should
look more like JSON, which to me would be a terrible idea, because PHP
arrays have very different behaviour from JavaScript objects, on which
JSON is modelled.
Totally agree.
Regards.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php