News for hackers. Stuff that matters.
Re:The case against static typing in PHP (2023) by dhfuuvyvtt on Saturday December 14, 2024 @04:50AM (#42415860)
Typescript doesnt blow up when someone passes a legacy assumption into a static typed area of dynamic code.

I've seen too many bugs with PHP static typing for it to be worth it in mature systems. It's great in greenfield, but yeah, old code is hard to work it into unlike typescript which tends to be more forgiving. Though, I will say, typescript is just as viral if not more so.

Re:The case against static typing in PHP (2023) by arunix on Saturday December 14, 2024 @05:28AM (#42416087)
What did you mean by "viral"?
Re:The case against static typing in PHP (2023) by mklepaczewski on Saturday December 14, 2024 @03:35PM (#42419264)
> I've seen too many bugs with PHP static typing for it to be worth it in mature systems.

Can you elaborate? What kind of bugs? Can you give some examples? I'm scratching my head because I'm not sure if I ever experienced such a bug.