Tim Starling wrote:
> Aryeh Gregor wrote:
>>
>> and img might be:
>>
>> public static function img( $src, $alt, $attribs = array() ) {
>
> I'm afraid your thinking on this is going in precisely the opposite
> direction to mine. I think long lists of formal parameters make code
> almost impossible to read and nearly as difficult to write. It might
> take slightly longer to type
>
> Html::img( array( 'src' => $src, 'alt' => $alt ) );
...although at that point you might almost as well just go the extra
step and make it:
Html::element( 'img', array( 'src' => $src, 'alt' => $alt ) );
--
Ilmari Karonen
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l