On 20/05/07, Michael Fellinger <m.fellinger / gmail.com> wrote:
> On 5/20/07, Dick Davies <rasputnik / gmail.com> wrote:

> > And you think replacing do/end with indentation would help?
> >
> > I really can't see how - could you give an example?
> >
>
> Let's try:
>
> describe 'myself'
>   it 'should be readable'
>     lambda
>       @reader.reading
>     .should change
>       @reader.knowledge
>     .by(text.amount)
>
>
> # pretty much impossible, if you ask me :)
> # same in usual ruby now
>
> describe 'myself' do
>   it 'should be readable'
>     lambda{ @reader.reading }.
>       should change{ @reader.knowledge }.
>       by(text.amount)
>   end
> end
>
> # well?

The only extra words there are do/end and you could replace them
with {} if they really bothered you.

If you're saying you personally don't like do/end blocks, then you're
as entitled to that opinion as anyone else, but I don't see this as making
DSLs any more or less comprehensible personally


-- 
Rasputin :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/