News for hackers. Stuff that matters.
Re:Making Wrong Code Look Wrong by Symmetry on Monday August 22, 2011 @10:16AM (#2912513)
In most languages that support this sort of things, can't you use SafeString in places where String is expected, as long as you declare SafeString as a sort of String?
Re:Making Wrong Code Look Wrong by prodigal_erik on Monday August 22, 2011 @10:26AM (#2912543)
I wouldn't want SafeString is-a String, I would want a conversion from SafeString to String that removes whatever encoding or escaping was applied. Otherwise you end up re-encoding values that unbeknownst to you don't need it, which is why there are thousands of terrible PHP bulletin boards out there which won't let you use quotes without mangling them.
Re:Making Wrong Code Look Wrong by mseebach on Monday August 22, 2011 @01:35PM (#2913267)
In Java, String is a final class.