Re: [PHP-DEV] [RFC] Escaping RFC for PHP Core - Updates?

2013-09-07 Thread Michael John Burgess
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();

Re: [PHP-DEV] [RFC] Named parameters

2013-09-07 Thread Michael John Burgess
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