4 ms·
> The best part of short array syntax is that now you don't need named parameters to be supported by the language Unless you've ever used languages with actual
by masklinn 15y ago
> The best part of short array syntax is that now you don't need named parameters to be supported by the language
Unless you've ever used languages with actual first-class keyword arguments (Python) and languages using hashes as pseudo-kwargs (Ruby, JavaScript). Then you know it's no substitute.
Also, you could already do just that in PHP before, it simply took 5 more characters.