4 ms·
What would you have it return, null? I wouldn't have it return anything. I'd have it throw an exception (type error). Dynamic typing can be a Good Thing. Prete
by Zak 18y ago
What would you have it return, null?
I wouldn't have it return anything. I'd have it throw an exception (type error). Dynamic typing can be a Good Thing. Pretending types don't exist is probably a mistake.
PHP uses the backslash for escaping characters in strings and for line continuation. There's ambiguity being created any way you look at it.
Many languages much older than PHP seem much more modern. Scheme, Smalltalk, Haskell, Python and even Perl come to mind.