> Have you considered how this will work/look in an array?
>
> $a = [$b => ($n) $m => $m * $n]; // wat.

First off, it should be:

    $a = [$b => ($n) |$m| => $m * $n];

The || make a big difference in this situation.

Secondly, if you hit a situation where the syntax is confusing, use a
less confusing syntax if possible. This goes for any type of syntactic
confusion, not just short-array syntax.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to