TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Dynamic Invocation in PHP Exposed

7 pointsby KrisJordanover 15 years ago

1 comment

gdpover 15 years ago
Sigh. Must we? This kind of large-scale dynamic behaviour tends to go wrong even in languages that provide type-checking and sensible lexical scoping. In PHP it's basically just a recipe for the kinds of untouchable "black magic" code that haunt code bases. It's basically some nasty syntax wrapped around even nastier GOTO-style behaviour.<p>"is_callable" is no better, because if you don't know, you shouldn't even be trying it. It might as well be called "does_stick", because you're basically just throwing spaghetti (code) at a wall.
评论 #800594 未加载
评论 #800620 未加载