[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Or Alternatively ... ?
> From: Marcin 'Qrczak' Kowalczyk <qrczak@xxxxxxxxxx>
>> Paul Schlie <schlie@xxxxxxxxxxx> writes:
>>
>> (define some-values '(1 2 3))
>>
>> (+ . some-values) :: (+ 1 2 3) => 6
>>
>> (+ . some-values . '(10 20)) :: (+ 1 2 3 10 20) => 36
>
> This syntax is not compatible with S-expressions.
> (it's not an external representation of data),
> so Scheme will not adopt it.
- Understood, however some simpler syntactic alternative
to it's otherwise semantic equivalent would be nice, as:
(eval `(+ ,@ some-values ,@ '(10 20))) => 36
feels a bit cumbersome?
(although correspondingly an alternative to the use of values ...)