I know that there are a couple of singletons around that can be used to quickly return "common" values from Guile C extension functions, like:
SCM_UNSPECIFIED
SCM_BOOL_F
and others.
I would expect that returning #nil
from a C function would be just as easy, but I have yet to find the proper constant or the proper way.
Returning NULL is a no-go.
So, the question is: how do I return #nil
from a C extension function?
And if doing so is relatively convoluted, is there a reason for that (e.g. maybe returning #nil
is not idiomatic in Scheme)?