TBH, I don't know lisp and I have no clue what you just wrote. Someone new to PHP can just be told $something is how variables look like. And they will recognize variables forever from then on. What's a variable in that lisp code, or in any general lisp code? I have no clue at first glance.
I didn't say it's necessary for the parser, but it's useful for the learner/user.
Re:PHP 8: Before and After
by withinboredom on Saturday October 24, 2020 @07:23AM
(#24878490)
You can do:
$strlen = 'strlen';
echo $strlen('test');
I’ve also seen things like this:
$return = ...
You can’t use a keyword as a variable in most other languages.
Plus, to have different scoping rules was considered a good idea? Weird scoping issues were why I gave up on Ruby fifteen years ago; perhaps it was a good idea that I got never that far with PHP. But I'm intrigued now; what exactly are the scoping differences in question?