« first day (3179 days earlier)      last day (601 days later) » 

1:13 AM
@giuliolunati The behavior is open but right now that is a difference between compose and reduce
There is kind of a rationale for why reduce should produce as many expressions as input.
 
 
2 hours later…
2:47 AM
@HostileFork Hmm... I think the user should have a choice, e.g. reduce [if false [1] 2 try if false [3]] => [2 _]
 
 
13 hours later…
3:27 PM
@giuliolunati I argue this can be done with predicates, e.g. which predicate you use (reduce /identity [...]) would allow null to vaporize but the default is (reduce /try [...])
 
 
3 hours later…
6:02 PM
@HostileFork or the other way around?
@HostileFork BTW, what are predicates?
 
6:51 PM
@giuliolunati Predicates were the idea that you could specify a function somehow to be the comparison operator in a FIND, or something to do on items in a compose or reduce...like
>> compose /negate [a (1 + 2) b]
== [a -3 b]
It's still being thought about, so don't assume it's set in stone yet...but I've thrown a few experiments in to try.
‌>> switch 2 /greater? [3 [print "bigger than 3"] 1 [print "bigger than 1"]]
bigger than 1
So what we can do is to say that REDUCE defaults to /TRY and gets you blanks, but if you said REDUCE /IDENTITY and it got NULL it would discard it.
I like this idea instead of making up a billion more natives
But to me the default operator for FIND and SWITCH etc. needs to be the same unless there is a good reason, e.g. /equal? which I guess we are now saying is becoming set in stone as /=
And it seems IS and ISN'T will be taken for strict equality. This is based on history, supported by the arguments from: blog.hostilefork.com/making-the-case-for-caselessness
 
 
2 hours later…
8:40 PM
@JacobGood1 check your rebol forum inbox.
 

« first day (3179 days earlier)      last day (601 days later) »