News for hackers. Stuff that matters.
Re:I'm Betting on Call-by-Push-Value by Tyr42 on Saturday March 09, 2024 @09:30PM (#39656289)
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.
Re:I'm Betting on Call-by-Push-Value by nerdponx on Saturday March 09, 2024 @10:00PM (#39656394)
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.
Re:I'm Betting on Call-by-Push-Value by bch on Saturday March 09, 2024 @10:36PM (#39656539)
Re:I'm Betting on Call-by-Push-Value by hobs on Saturday March 09, 2024 @11:40PM (#39656754)
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.

Re:I'm Betting on Call-by-Push-Value by Certhas on Sunday March 10, 2024 @08:55AM (#39658672)
Isn't that a feature/problem of every dynamic language?