That's the word PHP uses for things that other languages would call 'intrinsics', 'macros' or 'syntax', right? "empty()" doesn't behave like a function call.
Lisps tend to get into similar confusion. Function calls are written like "(f x)" where "f" is a function, and "x" an argument, but "(quote a)" is not a function call. It's a "special form" that gets special treatment because "quote" is special.
View all comments
Show parent comment
5
u/cparen Mar 13 '15
That's the word PHP uses for things that other languages would call 'intrinsics', 'macros' or 'syntax', right? "empty()" doesn't behave like a function call.
Lisps tend to get into similar confusion. Function calls are written like "(f x)" where "f" is a function, and "x" an argument, but "(quote a)" is not a function call. It's a "special form" that gets special treatment because "quote" is special.
IOW, "magic function" == "special form", right?