On 07/09/2013 15:41, Levi Morrison wrote:
It looks nicer than Escaper::escapeJs(), Escaper::escapeHtml(), etc.
Any comments?
Please, don't go down this route. You do not want one class to escape all
kinds of data; delegate each type of escaping to its own class:
JavaScriptEscaper->escape();
On 06/09/2013 20:58, Matthew Leverton wrote:
What I don't like about named parameters is that if I build a library,
now even my parameter names are unchangeable if I don't want to break
any backward compatibility, since I never know if somebody will decide
to call my single parameter method with