« first day (3732 days earlier)      last day (48 days later) » 

1:43 AM
posted on January 18, 2021 by hostilefork

Since PRINT doesn't have an interesting return value, we might ask what the harm would be in making it invisible. But let's generalize the question to SOME-FUNCTION where the key point is that at the time you write it, you haven't thought of a meaningful result for it. Catching Erroneous Assignments Returning an "ornery" value helps catch mistakes more easily when a meaningless

 
2:07 AM
posted on January 18, 2021 by hostilefork

@rgchris has convinced me, and I am now committed to the idea that "VOID" is not a datatype, but the characterization of what were previously called "invisible" functions. There is a nice sense in which this lines up with traditional "void" functions in C (and related languages). Because absolutely no value--not even some dummy or placeholder--is returned. It means the libRebol

 
 
5 hours later…
6:55 AM
posted on January 18, 2021 by hostilefork

I resurrected the "stats" function to get some metrics. It's actually a good example of how nicely Ren-C can improve things: Here's the code for stats in R3-Alpha (which references an object prototype defined elsewhere in sysobj.h, and you can also see that all you see in this file of the function spec is REBNATIVE(stats)) Here's that in Ren-C, and the maintainability advant

 
 
15 hours later…
9:43 PM
posted on January 18, 2021 by hostilefork

In thinking about weird applications of case, I was reminded of the little trick of the AN function: >> an "integer" == "an integer" >> an "text" == "a text" It simply checks the letters of the start of the rendering of what comes after it, and resolves to either "a" or "an". I came up with it during the automatic generation of help strings for typecheckers, somethi

 

« first day (3732 days earlier)      last day (48 days later) »