[racket] (values) vs (void)
in inner define contex I better write
(define-values () (procedure ...))
than
(define dummy (procedure ...))
In other context return value is used only whe it is part of expression. void? is almost never applicable to expression.
Sun, 23 Nov 2014 14:22:20 +0100 от Jens Axel Søgaard <jensaxel at soegaard.net>:
>Most contexts expects a single return value, so use (void) unless you
>are in a special situation.
>
>/Jens Axel
>
>
>2014-11-23 13:55 GMT+01:00 Roman Klochkov < kalimehtar at mail.ru >:
>> When I should use (void) and when (values)?
>>
>> They are both used to show, that there are no return values.
>> They are both not printable.
>>
>> What is intended use for (void) and (values) and when one should prefer one
>> over other?
>>
>> --
>> Roman Klochkov
>>
>> ____________________
>> Racket Users list:
>> http://lists.racket-lang.org/users
>>
>
>
>
>--
>--
>Jens Axel Søgaard
--
Roman Klochkov
----------------------------------------------------------------------
--
Roman Klochkov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20141123/d37b4c3c/attachment-0001.html>