Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

can anybody explain what is the purpose of static typing in a dynamic language ? It's not like you get benefit of compilation like java/C#.

Why is PHP trying to become java so hard, if there is already java and .NET ?



You can compare static typing in php to typescript or static typing in python. It's for correctness, not performance.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: