Re: Types on the right or on the left
| From: | Andrea Faulds | Date: | Mon, 03 Nov 2014 19:42:21 +0000 |
| Subject: | Re: Types on the right or on the left | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78586@lists.php.net to get a copy of this message | ||
> On 3 Nov 2014, at 19:28, Stas Malyshev <smalyshev@gmail.com> wrote:
>
> Hi!
>
>> PHP doesn’t need more inconsistency, sure, but we must be practical
>> here. It is bad if PHP and Hack have the same feature with different
>> syntax, it will cause developer confusion and further segment the
>> communities.
>
> Given that Hack is a different language, which was designed AFAIK with
> little input from PHP community, I don't see how there would be any
> confusion - it's like saying PHP and Perl or PHP and Java having
> different syntaxes leads to segmenting the communities.
This is an unfair comparison. Hack is a compatible superset of PHP, much like TypeScript is a
compatible superset of JavaScript.
> In fact, there
> are two different communities - though, of course, people can belong to
> both - and two different languages. I do not think Hack syntax should
> have much weight in decisions about what syntax to choose in PHP - it's
> a different language, even though it has many similarities.
I’d rather there be less divergence between Hack and PHP, to limit the damage that it causes to
the community.
--
Andrea Faulds
http://ajf.me/