TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Dynamic Invocation in PHP Exposed

7 点作者 KrisJordan超过 15 年前

1 comment

gdp超过 15 年前
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 未加载