It's what let's the tidy data tools take arguments like .x where x is a column name, not a local varia le that's in scope.
R is even more wild because you can access the entire definition of a function from the function object itself. You can literally make a new function that's a copy of an existing function with some lines of code injected.
In Tcl, [info body …].
Powershell lets you do this too.
Re:I'm Betting on Call-by-Push-Value
by FridgeSeal on Sunday March 10, 2024 @04:09AM
(#39657533)
“Wow this is fun and amazingly useful”
8 months later.
“I regret this decision, and a thousand curses on anyone who chooses to use this in a code base I have to work on”
I’ve been at the receiving end of this particular “feature” and it was awful. Your logic is splayed all over the place, and you’ll often get mystery errors, because someone else’s code makes some undocumented, un-typed assumption about the availability of some magically named variables. This is not a feature, this is bugs and misery in disguise.
(In fact, R isn’t just ‘extremely similar’: it does use fexprs, though without mentioning the term.)