On Thu, Apr 1, 2010 at 2:46 PM, Conrad Irwin
<[email protected]> wrote:
> If you're going to do overloading, why use an Array:
>
> Msg::text( 'file-log', Msg::language( $wgContLang ), $user, $filename );
> Msg::escaped( 'bad-message', Msg::rawParams( '<script>...</script>' ) );

Because it's more succinct, and no less clear.

> The use-case for being able to add extra paramters as you're going along
> (one of the reasons given to me for the chaining thing) could be handled
> by a Msg::params() object that you could construct.

What's a real case where anyone actually wants to do this?  It's not a
big deal to compute the params before the call, and it's easier to
understand IMO.

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to