Rebol2 and Red both have a console property that when the console sees an UNSET!, it prints nothing:
>> block: reduce [<a> #[unset!] <b>]
== [<a> unset <b>] ; bad rendering, conflates #[unset!] with the word `unset`
>> first block
== <a>
>> second block
>> third block
== <b>
This doesn't provide the best grounding in the console, especially considering that in their world an UNSET! is a reified value that can be found in a block.
However, returning an UNSET! is how functions like PRINT avoid outputting anything with ==
in the console:
rebol2>> print "Notice no == result"
Notice no == result
rebol2>> type? print "Test"
Test
== unset!
But What Result Should Ren-C Suppress?
Ren-C has two antiforms which might be considered candidates for not displaying... VOID and TRASH.
Because voids vanish (when APPENDing, or COMPOSE-ing), it might seem to make the most sense to have voids not print anything, and trashes print out the standard isotopic form.
Such a world would look like this:
>> void
>> lift void
== ~[]~
>> ~
== \~\ ; antiform (trash!) "tripwire"
If you buy into that, it might seem to make a lot of sense to have functions like PRINT and HELP return VOID.
BUT as I explain in "Why doesn't PRINT return VOID or GHOST", there is a bit of a pitfall. Voids are friendly in terms of opting out of things:
>> append [a b c] print "If PRINT returned void..."
If PRINT returned void...
== [a b c]
This seems too friendly to me. There's another possibility of returning GHOST, which today prohibits use as an argument. It would wind up making an evaluation appear to be void if no other expressions were in play...but if other expressions were involved it would let them fall out
>> print "If print returned GHOST!"
If print returned GHOST!
>> append [a b c] "If print returned GHOST!"
If print returned GHOST!
** Error: APPEND is missing its VALUE argument
>> 1 + 2 print "If print returned GHOST!"
If print returned GHOST!
== 3
So returning TRASH feels like it makes the most mechanical sense...it has the right amount of ornery-ness:
>> print "Mechanically this works best"
Mechanically this works best
== \~\ ; antiform (trash!) "tripwire"
But it's ugly to have that == \~\ ; antiform ...
after every HELP or PRINT or other function.
Historically I've gone with TRASH being invisible, and VOID printing a result.
>> ~
>> void
== \~[]~\ ; antiform (pack!) "void"
But I've given a try at printing the results always to see what my feelings are.