Hi,

I read again and again the RFC and I just decided to switch my vote.
Originally a "YES" voter, I'm now a "NO" voter. I still want strict types
to exist in PHP, and not only at the end-user level, but also at the
internals level (I can see so many optimizations around...).
However, I think it's not an INI setting or a per file operation. I
consider it should be (at the current PHP's pace) a heavily flexible
support. I tend to agree that if you put "string" in its definition, you
don't want a weak type, but strict type, the same way when you put MyClass
instead of nothing.

That's why I don't agree with the declare or "use strict" or <?php strict.
If I say "string $foo", I want a string, not a converted value. By
accepting this fact, makes easier in the future to make OO primitive types
if we wish, and also makes everything easier for everyone... if you have
foo(string $name), you expect strict type... if you want weak type,
foo($name). All code will work as is today, no BC breaks.

That's my 2 cents... now time to update my vote in RFC.

[]s,


On Mon, Feb 9, 2015 at 1:02 PM, Andrey Andreev <n...@devilix.net> wrote:

> Hi,
>
> On Mon, Feb 9, 2015 at 7:22 PM, Jordi Boggiano <j.boggi...@seld.be> wrote:
> >
> > And that is exactly why this RFC is great, since it lets the
> > strict-proponents have their strict types in their files, but those
> > preferring weak ones can remain in the default weak mode, never see an
> ugly
> > declare(), and still call strict code in weak mode.
> >
> > That is why I don't quite understand the "no" votes coming from
> weak-hints
> > proponents. Unless of course you would prefer to pass weak-only v0.1 and
> > then shoot down any attempt at strict hints. That strikes me as quite
> > selfish though, given the strict-proponents isn't such a tiny group of
> > people.
> >
> > And then there are the people sitting somewhere in between the black and
> > white camps. Those that would like to use strict sometimes for some
> critical
> > code paths, and for them the proposed solution is quite good as well.
> >
>
> I am in the "between black and white" camp and this RFC doesn't give
> me what I want, nor did the 0.1 version of it.
> I would vote 'no' on both if I had voting privileges.
>
> Please, all, stop speculating and just let the votes count.
>
> Cheers,
> Andrey.
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Guilherme Blanco
MSN: guilhermebla...@hotmail.com
GTalk: guilhermeblanco
Toronto - ON/Canada

Reply via email to