[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Or Alternatively ... ?

This page is part of the web mail archives of SRFI 86 from before July 7th, 2015. The new archives for SRFI 86 contain all messages, not just those from before July 7th, 2015.



> 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 ...)