[racket] (values) vs (void)
void is a good placeholder in dummy functions/objects. It doesn't do
anything, except for fill a gap, which is useful.
Values is used to pass multiple values.
Check the manual for details.
Does that help?
Stephen
On Sun, 23 Nov 2014 at 12:56 Roman Klochkov <kalimehtar at mail.ru> wrote:
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20141123/2bf8477d/attachment.html>