Damian Conway <[EMAIL PROTECTED]> writes:

>    > Are the two values of a pair restricted in anyway? All your examples
>    > were scalar.
> 
> Yes. The two components must be scalars.
> The key is stringified iff it's a bareword.
> Otherwise no restrictions.

So assuming pairs are scalars...

    $list = a => b => c => d => e 

is equivalent to:

    $list = a => (b => (c => (d => e)))

And we could do:

    key(value(value $list)) == 'c'

And other such lispish magic?

How about:

    (a => b => (c => d => e) => f => g)

Maybe we could have a pragma:

    use lisplike;

Which would make

    (a b (c d e) f g) == (a => b => (c => d => e) => f => g)


Hmm... you know, once more I'm not sure if this is ugly or beautiful,
but it's certainly fascinating. I think I like it.

-- 
Piers

Reply via email to