Re:PHP solves problems. Oh, and you can program with it too
by zeroonetwothree on Friday June 29, 2012 @07:07PM
(#4179618)
One reason to abstract away strings is that you can gain security. For example, your template might only accept an HTMLString, which can only be created from a String by escaping. Your database library might only accept a QueryEscapedString, and so on.
Of course all of this is possible without creating a wrapper for vanilla strings.
Of course all of this is possible without creating a wrapper for vanilla strings.