# Scalar type hinting

- Thread: https://externals.io/message/58366
- Original archive: https://news-web.php.net/php.internals/58366
- Started by Matt Wilson on 2012-02-29T22:46:54+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #58366 — Matt Wilson — 2012-02-29T22:46:54+00:00

URL: https://externals.io/message/58366#58366

I once pushed this hard for namespaces. Then, after years of it being shot down, they did it. 

And now I'm sad. It didn't occur to me until after it had been implemented how bad an idea it was for php. I think this is one of those times.

Type hinting is wonderful, but i'm not sure you could really make it fit in php without bastardizing the concept. 

The last time I looked at this discussion, I saw something about call-time silent type conversion (essentially foo((int) $bar)) and if that's not bastardizing a concept...

I think the community has spoken. And when the core devs put their foot down, I think it's best to listen. If it's so important to you, then by all means, fork. Or simply write a patch. Put it to a vote. But this is beating a very dead horse.

-M



> I agree.  I'm against strict type hinting as well.  Of course, nobody here
> is suggesting that we should go with strict typing, so it's a moot question
> anyway.
> 
> --Kris
> 
> 
> On Wed, Feb 29, 2012 at 2:35 PM, Arvids Godjuks <arvids.godjuks@gmail.com>wrote:
> 
> > […]
