On Thu, Sep 12, 2019 at 1:05 PM Matthew Brown <matthewmatt...@gmail.com>
wrote:

> that don't fundamentally change the language
>
>
> There's clearly a big disagreement about whether this is a fundamental
> change or not.
>
> Preventing something that the entire field of software engineering frowns
> upon (and that most PHP developers avoid like the plague) doesn't seem like
> a *fundamental* change.
>
>
I would argue that this is exactly such a change. The flexibility of PHP
has often been touted as a feature and something that sets it apart.
Whether that's good or bad is, frankly, irrelevant. There are valid reasons
for not always initializing variables or array keys. It might be a bad
reason in your opinion, but others view it as perfectly acceptable. For 20
years people have developed code based on that feature. It was never
considered an error, and often not even considered bad practice. To
suddenly define it as such is the exact definition of a fundamental change
to the language itself.

What if Java suddenly said that all properties are suddenly private, and
can only be accessed through getter/setter methods? The fact that you
should make properties private and use such methods is a practice that was
drilled into me from day one. Would that justify making such a change,
though?

-- 
Chase Peeler
chasepee...@gmail.com

Reply via email to