2010/12/10 John Cowan <co...@mercury.ccil.org>:
> Thomas Chust scripsit:
>
>> to me the analogy seems quite well chosen. By the way, sometimes I
>> actually wonder whether splicing behaviour of multiple values in an
>> argument list wouldn't be a good idea, but I'm unsure.
>
> It's a Really Bad Idea, because it makes it impossible, for example, to
> report (cons (x)) as a compile-time error (too few arguments). After
> all, what if x returns two values?

Hello John,

few Scheme compilers would report (cons (x)) as a compile time error
for lack of static type information.

Obviously, if enough static type information was present, it would be
easy to check whether (x) actually returned exactly two values and
(cons (x)) was valid.

So yes, splicing return values is probably a better idea in a language
more strongly typed than traditional Scheme.

Ciao,
Thomas


-- 
When C++ is your hammer, every problem looks like your thumb.

_______________________________________________
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to