[Seaside-dev] Re: WATagBrush>>class:if: with boolean and additional blocks

Philippe Marschall philippe.marschall at gmail.com
Mon Dec 30 20:42:19 UTC 2013


On Mon, Dec 30, 2013 at 8:33 PM, Torsten Bergmann <astares at gmx.de> wrote:
>>What's the use case for this?
>
> One can pass a block instead of a boolean which is more flexible since a block
> can be passed around

So can booleans.

> and (although defined/dynamically constructed elsewhere)
> evaluated at rendering time.

I understand. Do you have a concrete example?

>>Do not assume #value is part of the Object protocol
>
> No I do not assume that any object can be given - only booleans and
> blocks. Thats where the name "aBooleanOrBlock" for the parameter came from.

I'm also not sure we can make this assumptions for booleans. If #value
isn't on Object why should it be on Boolean?

Cheers
Philippe


More information about the seaside-dev mailing list