On Sat, May 19, 2007 at 07:55:15PM +0200, A. Pagaltzis wrote:
> * Matt S Trout <[EMAIL PROTECTED]> [2007-05-19 19:45]:
> > comp_root => do { my $root = $c->config->{root}; "${root}"; },
> > 
> > would be better, I think.
> 
> Why `do`? Wouldn’t this be just as good?
> 
>     comp_root => "" . $c->config->{root},

Yes, but IMO less explicit.

> The `stringify` method doesn’t have side effects, I hope?

Nah.

> (Also, talk about leaky abstractions…)

Some things don't stringify things they can't handle, sadly. It's entirely
possible this could be fixed at the Mason level.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to