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

Nah. Macros allow library developers to do really stupid things that can't be improved on. Reflection lets library users get around the regular stupid things library developers do.


"Reflection lets library users get around the regular stupid things library developers do."

Like marking variables as private?


Yes, especially if that variable is an IDisposable that the library author also forgot to dispose. Like Microsoft's own System.IO.Ports.SerialPort with its underlying data stream.


Why do we have things like "private" and "protected" if people can circumvent them?


Because only a Sith deals in absolutes




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: