[Catalyst] Re: Detach won't detach?

Jonas Alves jonas.alves at gmail.com
Wed Jan 28 08:55:33 GMT 2009


-- =

Jonas


2009/1/28 Jonathan Rockway <jon at jrock.us>

> * On Tue, Jan 27 2009, pie3142 at comcast.net wrote:
> > Why not
> >
> > sub auto :Private {
> >         my $c =3D 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090128/23bb7=
7d3/attachment.htm


More information about the Catalyst mailing list