News for hackers. Stuff that matters.
Re:Experiment: Unit testing isn't enough; You need static ty... by EvilTerran on Wednesday June 20, 2012 @12:47PM (#4137804)
In Haskell, you could define a type AttributeString that was a plain string internally, but encapsulated so it could only be instantiated (or only be serialized) through a function that did the relevant escaping; require attributes to have that type, then the type checker would enforce that property for you as well!

There are no comments on this comment yet.