These don't appeal to me as much as fistly and lastly.  Also the
semantic is a little different than arrays in that 'enhance' is more
like 'push' and there's no equivalent to 'lastly'.

alex

On Wednesday, November 17, 2010, Antoine Toulme
<[email protected]> wrote:
> How about sticking with Ruby arrays:
> -unshift prepends at the front of the array
> -push adds at the end.
>
> Antoine
>
>
> On Nov 17, 2010, at 12:14 AM, Peter Donald wrote:
>
>>> I was initially thinking about do_first and do_last but though the "do" was
>>> redundant with Ruby's do ... end notation.   Do you think that's better?
>>
>> Not greatly. Maybe firstly and lastly?
>>
>> task(:foo).firstly do
>>  # block will be executed before 'enhance' blocks
>> end
>>
>> task(:foo).lastly do
>>  # block will be executed after 'enhance' blocks
>> end
>>
>> That way it does not double up the "do" word and doesn't look like an
>> enumeration.
>>
>> --
>> Cheers,
>>
>> Peter Donald
>
>

Reply via email to