Actually, I love the idea. Turbo Pascal's Turbo Vision framework was
heavy into this. Although it did tend to get a little crazy trying to
match up parens when you started to define something like a really
long menu, for example.

Actually, isn't there an XML class doing this in a few places?



Dan

On Tue, Nov 15, 2011 at 11:50 PM, John Du Hart <[email protected]> wrote:
> Right now our coding conventions manual never touches on method chaining,
> nor have I personally seen this practice in core. So I'm interested in what
> the rest of the community feels about adapting this practice more, and if
> there are trade offs I'm not aware of. Let's make an example, take this
> code from Abuse Filter:
>
> $out = $this->getOutput();
> $out->setPageTitle( wfMsg( 'abusefilter-examine' ) );
>  $out->addWikiMsg( 'abusefilter-examine-intro' );
>
> So, instead of writing it like that, it could be written
>
>  $this->getOutput()
> ->setPageTitle( wfMsg( 'abusefilter-examine' ) )
>  ->addWikiMsg( 'abusefilter-examine-intro' );
>
> It's just another style I've encountered on other projects and I personally
> like.
>
> --
> John Du Hart
> _______________________________________________
> Wikitech-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>

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

Reply via email to