Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


“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.


Isn't that a feature/problem of every dynamic language?


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.



Powershell lets you do this too.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: