4 ms·
Making Wrong Code Look Wrong (2005)
- kd5bjo 7y agoThe modern solution to this problem is to use different types for semantically distinct categories, even if the in-memory representation is effectively identical. Noticing that you’re mixing HTML-safe and HTML-unsafe strings is exactly the sort of thing the compiler should be able to help you with.
- NieDzejkob 7y agoThere's a nice discussion on this topic under 2011's submission: https://news.ycombinator.com/item?id=2912702 https://news.ycombinator.com/item?id=2912702