[REBOL] Re: Shortcut word available?
From: moliad::gmail::com at: 17-Jun-2007 9:56
On 6/17/07, Robert M. Münch <robert.muench-robertmuench.de> wrote:
> There is one situation where I don't like COMPOSE (because it's not easy
> to handle) and that's when you need to do some calculations with parens
> inside a block. In this case COMPOSE interprets the parens differently.
very true, when there are already parens in a block, its not very practical
to use compose. In most cases, surrounding the math with an extra
all-encompassing set of parens work.
if you really want the original parens to be part of the block, although
clumsy, you can just include them within a block. The compose will remove
the block and leave the content intact (unreduced).
>> a: 3
>> compose [([(a)])]
>> compose compose [([(a)])]
now, I didnt't say the above in a hope of "defending" compose ;-). but the
above can help if you've got just a few parens in a large setup...