Re:PHP 7.4
by Freegile on Thursday November 28, 2019 @10:30AM
(#21657955)
But does it have to be =>? How about ~>?
Looks cool to me.
[ Parent
| on HN ]
Re:PHP 7.4
by johannes1234321 on Thursday November 28, 2019 @11:06AM
(#21658258)
~ is annoying to type on some keyboard layouts (Alt Gr and + onna German keyboard)
Also PHP tries to be "googlable". Typing "fn PHP" into Google should bring relevant hits, for people never seen such a construct.
> Also PHP tries to be "googlable".
If not insisting on the "google" part, there always is http://symbolhound.com/?q=php+%7E%3E
I noticed lately google is starting to understand symbols in certain contexts. Searching "php =>" actually does provide relevant results.
Re:PHP 7.4
by asdasdasdasdwd on Thursday November 28, 2019 @11:37AM
(#21658547)
There's some rationale here[0]. Basically they'd need to use a parser that on ambiguities would have to go down all possible routes concurrently until all but one fail, which can lead to performance costs. Using a prefix keeps things simple.