3 ms·
I'm afraid that'll only result in some people using those inappropriately then other people using `reflect` to mutate those objects. Just like with "private" me
by drdaeman 2y ago
I'm afraid that'll only result in some people using those inappropriately then other people using `reflect` to mutate those objects. Just like with "private" methods and fields when library authors create a good library but don't expose something crucial for anther person's task at hand.
- XorNot 2y agoMan I can't remember whichever black magic I invoked to bust into some C# sealed classes for some office application. But I was glad it existed because it enabled a whole set of valuable business automation at the time.
- School-Cotton 2y agoNothing in any programming language I’m aware of prevents you from opening /proc/<pid>/mem and changing the state arbitrarily. I don’t think we should avoid adding features to programming languages because a malicious coworker might work around them.