opendylan icon indicating copy to clipboard operation
opendylan copied to clipboard

assigning the result of a funcall with no values

Open cgay opened this issue 5 years ago • 0 comments

OD 2020.1

define function f () => () end;
let x = f();
format-out("%=\n", x);

==> #f

I think there could/should be a warning because x is never going to be anything other than #f and it's almost certain the user meant something else. I

Surprisingly, I don't see any mention of what should happen in this case in the DRM, at least in the Return Value Declarations section.

cgay avatar Dec 21 '20 06:12 cgay