[Seaside-dev] Re: [Seaside] returning a response in seaside 2.9

Lukas Renggli renggli at gmail.com
Wed May 20 15:20:00 UTC 2009


> We've discussed this before but it kind of doesn't make sense having
> WAResponse implement #respond,

I don't like that either.

> self requestContext respond: [ :response |
>    response
>      contentType: WAMimeType textPlain;
>      nextPutAll: 'Hello World' ]
>
> A few more characters ("[ :response | ]") but not many and I think it
> makes more sense. Obviously #response and #respond would still exist
> for cases where you don't want to modify the response and respond at
> the same time.
>
> What do you think?

Yeah, this is cool.

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside-dev mailing list