opendylan
opendylan copied to clipboard
assigning the result of a funcall with no values
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.