Skip to content

Comment on What exactly do you dislike about PHP? and Why is your web language of choice better?

Comments

"You can nest function declarations, but with limited effect. Nested declarations do not limit the visibility of the inner-defined function, which may be called from anywhere in your program. The inner function does not automatically get the outer function's arguments. And, finally, the inner function cannot be called until the outer function has been called."

That's from "Programming PHP" by Rasmus Lerdorf et al.

This sort of messiness, repeated dozens of times in various ways is why I try my best to avoid PHP.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.