-- 
Jonas

2009/1/28 Jonathan Rockway <j...@jrock.us>

> * On Tue, Jan 27 2009, pie3...@comcast.net wrote:
> > Why not
> >
> > sub auto :Private {
> >         my $c = pop;
> >         return user_logged_in || $c->res->redirect( ... );
> >     }
>
> Because now the correctness of your application depends on undocumented
> behavior (the return value of $c->res->redirect).
>


With "$c->res->redirect || 0" you are already depending on $c->res->redirect
return value. So what's the difference?

-- 
Jonas
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to