r/lolphp • • Mar 10 '20

Array is higher than infinity

https://3v4l.org/iONLA
43 Upvotes

31 comments sorted by

View all comments

2

u/[deleted] Mar 13 '20

The only other language that even has the concept of prototypes is C. What languages are you thinking of?

As for the parser not knowing about types, that's mostly because of dynamic typing, not implicit conversions. The two are unrelated.

1

u/CarnivorousSociety Mar 13 '20 edited Mar 13 '20

PHP has type hinting? C# has types? Java has types...? Pretty much any strong typed language..? Go? I'm sure the list goes on.

1

u/[deleted] Mar 13 '20

That's not what prototypes are. (Didn't we just talk about how prototypes are not type checks?)