7 Matching Annotations
- Oct 2023
-
stackoverflow.com stackoverflow.com
-
When a language presumes to know more than its user, that's when there's trouble.
-
Just because a language has a feature that might be dangerous doesn't mean it's inherently a bad thing. When a language presumes to know more than its user, that's when there's trouble.
-
I'd argue that when you find a programming language devoid of danger, you've found one that's not very useful.
-
The reason eval is there is because when you need it, when you really need it, there are no substitutes. There's only so much you can do with creative method dispatching, after all, and at some point you need to execute arbitrary code.
-
-
- Jun 2023
-
stackoverflow.com stackoverflow.com
-
Practically speaking, if you can't think of a reason why it would be dangerous then theres more to be gained by opting for extensibility.
-
If it's dangerous, note it in the class/method Javadocs, don't just blindly slam the door shut.
-