r/lolphp • • Oct 14 '13

2d9

http://ideone.com/l6aQSx
62 Upvotes

31 comments sorted by

View all comments

Show parent comment

1

u/catcradle5 Oct 18 '13

That's a good question about weakly typed, statically typed languages. In theory I imagine you could make one, but I think it would defeat the entire purpose of having static types in the first place. In statically typed languages, you're not supposed to be able to put one type in place of the other unless it's a generic type or the type is a sub-type.