On Sat, Jul 08, 2006 at 06:05:09 -0700, John Napiorkowski wrote:

> $c->response->status($c->response->RC_NOT_FOUND);
> 
> or
> 
> if( $->response->is_success($c->response->status) ) {...}

That's no fun.

If you are going to be passing around the status value why  pollute
the response namespace?

$c->response->is_success,  $c->response->not_found etc should be
what it looks like to make sense as a plugin. For anything else you
have HTTP::Status already - just load and use it.

-- 
  Yuval Kogman <[EMAIL PROTECTED]>
http://nothingmuch.woobling.org  0xEBD27418

Attachment: pgpvJgBA7CmFm.pgp
Description: PGP signature

_______________________________________________
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