« first day (2988 days earlier)      last day (792 days later) » 

5:29 AM
Wacky off-the-cuff thought of the moment: what if WORD! and TEXT! were unified, such that {word with spaces} was a word with spaces. "foo" could be a shorthand for '{foo} but mean the same thing.
    >> {what if...?}: 10

    >> print [{what if...?}]
    10

    >> print ['{what if...?}]
    what if...?

    >> '{what if...?} = "what if...?"
    == #[true]

    >> print ["what if...?"]
    what if...?
 
 
3 hours later…
8:40 AM
posted on January 05, 2019 by @hostilefork Brian Dickens

@hostilefork wrote: Rebol2/R3-Alpha/Red have a notation for molding out objects: Red>> obj: make object! [a: 10] == make object! [ a: 10 ] Let’s ignore for the moment the fact that it’s giving a sequence of what looks to be two words and a block to denote a single OBJECT!. What it’s trying to do is give you a syntax that looks like what it w

 
@MarkI ^-- progress.
 
 
7 hours later…
3:57 PM
Yes indeed, very interesting. And I like the direction of your cogitation on paths also.
 
4:37 PM
@HostileFork This is becoming like a wild psychedelic experience. Removing yet more barriers and providing more mind-bending flexibility... I need to think about what this might be good for, but assuming it's not a performance hit it might be interesting...
 
4:52 PM
In a dialect, possibly I could use an entire (string) expression to associate with its results.
`>> sql-dialect {select count(*.htm?) from %*/www/vhosts/*}`
`== 43609`
`>> print [{select count(*.htm?) from %*/www/vhosts/*}]`
`== 43609`
So much for my markdown editing skills...
 
5:06 PM
@Edoc I have absolutely no clue if it's a good idea or not, but it was an interesting enough thought to mention. :-)
 
@HostileFork Agreed. I can think of some instances where this might be convenient.
 
We're still a ways away from the ANY-WORD!/ANY-STRING! unification, and all the technical questions that raises. UTF-8 Everywhere has to happen first. Right now WORD! and TEXT! are quite different, but they'll be less different after that. So it would make it easier to think about such questions.
@MarkI The path thing seems to me to be a winner. I've gotten things to boot with the rule that paths are only ever at the head and only support picking and length of, with no appending or otherwise...and it seems things weren't much depending on that.
I think that people maybe subconsciously avoided doing anything that interesting with paths because they were afraid of them. They weren't a "solid part".
 
 
1 hour later…
6:18 PM
@rgchris Pursuant to MAKE OBJECT! now having a coherence with generic quoting, and my tolerance of apostrophe, I'm going to say that module headers should fit canon form with apostrophe on anything that would be evaluative. So Type: 'Module and not Type: Module.
But now's time to wonder, would that be better as Type: <module> or something non-WORD!? I liked how you used tags as the "your data here" that people could hack in and the script read it out of the header, so perhaps reserving tags for that purpose would be neat. But I've mentioned how using words for enumerations may not be ideal due to their evaluative properties. Anyway, if it's a word, it should have an apostrophe.
 
 
2 hours later…
7:51 PM
posted on January 05, 2019 by hostilefork

While Rebol2 did not appear to try to compare object values field-by-field for equality, there exists code in R3-Alpha to do so (and apparently Red has it too): >> x: make object! [a: 1 b: 2] >> y: make object! [a: 1 b: 2] >> x = y == true >> x: make object! [a: 1 b: 2] >> y: make object! [a: 10 b: 20] >> x = y == false However, neither R3-Alpha nor Red wi

 
8:43 PM
@giuliolunati How's it going with generalized quoting and no more LIT-WORD!? Any big trouble?
 
 
2 hours later…
10:28 PM
@HostileFork Hi! I'm in Rebol-pause, working in C on fixing scanned pages. But I'll be back soon!
 
@giuliolunati Hurry up and finish that! :-)
So once we can write /a: and :/a and have those be SET-PATH! and GET-PATH! instances respectively, it likely means a few things. One: we probably want to tweak in-situ methodology to let those be a single cell, costing the same as SET-WORD! and GET-WORD!. Two: we probably want /a to do something evaluator-interesting.
Prior to the existence of METHOD, I had proposed /a be a way of saying you wanted to "look in the specifier's binding" for that word. This is to say that if you invoked a function through some value, and that particular ACTION! value cell contained a binding (e.g. an action in a context being bound to that context), the /a would use the knowledge threaded through the stack about that binding to know where to look up A.
/a looks better than this->a and could help legibility of methods, I'd think, for telling when you're talking about something that's using derived binding. It would help people not expect derived binding when they used plain references.
I think it may be a tall order to figure this all out completely, when you get new possibilities like :/a/<b> coming out of thin air...so the conservative choice in Beta/One for such things I think should be to make them evaluator errors. Don't assume they're evaluator neutral, but don't assume they're not. Get people to quote them in the meantime...pass "refinement" values (e.g. 2-element PATH!s with blank in first slot, WORD! in second) as '/a.
I'll point out there are already cool options in action specs, like:
erase: function [
    {Erase the X}
    x
    /all/<rename>/erase-all
       "Erase all the things"
][
    all [erase-all ...] then [...]
]
e.g. some language for asking ALL to be renamed out of the way locally, so you can still use ALL without saying LIB/ALL. Or maybe it just unbinds all, so you don't get confused and remember to say lib/all. Point being, you get more dialect options with this NewPath-y stuff.
 

« first day (2988 days earlier)      last day (792 days later) »