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

Julian Fitzell jfitzell at gmail.com
Thu May 21 05:11:48 UTC 2009


I see you did this already today. Great.

On Wed, May 20, 2009 at 8:20 AM, Lukas Renggli <renggli at gmail.com> wrote:
>> 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
> _______________________________________________
> seaside-dev mailing list
> seaside-dev at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
>


More information about the seaside-dev mailing list