« first day (3034 days earlier)      last day (746 days later) » 

12:01 AM
So history says that MAKE of an OBJECT!, when given a BLOCK!, has evaluative behavior on that block. And while it hasn't been 100% consistent (due to the fact that TO and MAKE would often run similar or identical code), TO conversions generally do not do evaluations (so they can't throw/return/quit/etc.)
I've proposed a step further, to say that TO not only doesn't evaluate, but it shouldn't look at bindings.
That would imply that to text! [1 + 2] could pretty much only be one of: "[1 + 2]", "1 + 2", "1+2".
I think I believe that to text! <foo> should be "<foo>", and now I think that to tag! "<foo>" should be <foo> while to tag! "foo" should likely be an error. If you aren't seeking a kind of reversible equivalence, but just want to make a tag with the spelling of a text or word, you would use as tag!. But TO implies that if you kept doing the transformations back and forth it would stabilize.
(e.g. if TO TAG! "foo" were <foo>, then if you TO TEXT! that you get "<foo>", and if you TO TAG! that you get "<<foo>>"... the angle brackets grow without bound even though you were doing a conversion to what the word TO suggests is a parallel form)
This may make MOLD's behavior seem like a good candidate for TO TEXT!, which has been thought of. A problem there is that TO TEXT! of a TEXT! pretty much has to be defined as COPY (any TO of a value to its own type runs COPY). That basically disqualifies TO TEXT! from being mold...because you wouldn't get the quotes or braces on text strings.
 
12:36 AM
Seems a bit of a waste to have so many TO and MAKE variations just do the same thing. Although it's a biased to numeric base to be doing integer conversions to any particular notation, wouldn't it be more useful if TO CHAR! 1 give you #"1", while MAKE CHAR! 1 gives you #"^(01)" ? Is it okay to have a base-10 bias, in a language that already pretty clearly has one for its integers?
 
 
7 hours later…
7:53 AM
@HostileFork I think it is. Afaik base-10 is preferred throughout the entire universe.
 
 
7 hours later…
2:45 PM
rebol2>> find "12345" 1
== "12345"

red>> find "12345" 1
== none
^-- Similar issue. These things are tricky, no perfect answer, which is why I feel like the goal should probably be to give you the best parts for building a behavior for what your task makes you do the most. So instead of putting too much attention on "the perfect answer for FIND", think about the best way to let you define FIND how you need it.
red>> parse [1 1 1] [some [quote 1]]
== true
red>> parse "111" [some [quote 1]]
== false
I feel like I'd like to see you be able to say parse "1 2 3" [collect values [keep some integer!]] and have that work.
I don't know if that in particular implies anything about the behavior of FIND, but it seems related.
 

« first day (3034 days earlier)      last day (746 days later) »