r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3-OLD1]

Pekr
22-Sep-2009
[17855]
you see? looking at what Max just posted, I *imediatelly* can understand, 
what does his code do.
BrianH
22-Sep-2009
[17856]
& makes more sense than STAY, because it relates to |. Both backtrack.
Maxim
22-Sep-2009
[17857]
still don't see why the use of blocks is evil when its the way of 
parse for everything else.
Pekr
22-Sep-2009
[17858]
Now I don't understand once again - if you are suggesting just changing 
the name of STAY to &, then please DON't do it!
BrianH
22-Sep-2009
[17859x3]
Maxim, the a's in Carl's examples aren't involved in the expression.
Pekr, no, Carl was thinking of changing AND to STAY, but decided 
against it when he figured out how to make it infix.
Maxim, "everything is already AND by default" is not true. Everything 
is "and then" by default, which is AND with moving forward. What 
we need is AND without moving forward. An infix & handles that nicely, 
and is the opposite of the infix | meaning OR.
Pekr
22-Sep-2009
[17862]
Ladislav just cheared to how Carl is precious about naming, and he 
liked STAY and QUOTE. STAY imediatelly expresses its meaning. Changing 
to to AND makes the situation only worse ....
BrianH
22-Sep-2009
[17863]
So you want to rename | too?
Maxim
22-Sep-2009
[17864x3]
brian  yes... I am wrapping my head around this... but I have to 
re-read the STAY proposal before getting too vocal... I'ts been to 
long since I've read it.
I actually wouldn't mind it being 'OR
(bts... about the 'a yes I didn't use the same vars in sequence... 
sorry)
BrianH
22-Sep-2009
[17867x2]
[+ a |  b | c] is equivalent to [a b | not a c] but without the overhead 
or side effects being executed.
So, do you have a name for that?
Pekr
22-Sep-2009
[17869]
This is really just - EITHER A [b][c], no?
Maxim
22-Sep-2009
[17870]
[a b | not a c]   actually it should say... [ [a b] | [not a c]] 
  sorry but the |  doesn't roll back the a it will only roll back 
the b... its bit me too many times
BrianH
22-Sep-2009
[17871]
No, because the a is not a condition, it's a rule.
Maxim
22-Sep-2009
[17872]
what brian means is that the rule is consumed.... its just something 
that has to be understood.
BrianH
22-Sep-2009
[17873]
Maxim, the a is rolled back too.
Pekr
22-Sep-2009
[17874]
COPY is not COPY too, so what? REBOL copy value - PARSE - copy variable 
to-rule
Maxim
22-Sep-2009
[17875]
it shoudn't be called EITHER specifically for this reason.
Pekr
22-Sep-2009
[17876]
Brian - this is not easy to name ...
Maxim
22-Sep-2009
[17877]
not in my experience... really it says it should and it works.. . 
until something screws it up... its happened to me COUNTLESS times... 
I've always had to put my rules in blocks to make sure they don't 
get fucked up by "|"
Pekr
22-Sep-2009
[17878]
btw - how will you explain it to the user? Maybe it is just too new, 
but unless you provided me with [a b | not a c], I was not able to 
depict [+ a | b | c]
BrianH
22-Sep-2009
[17879]
OK, let's try an easy one. Try to explain + without usingh the word 
"addition". Symbols are sed for a reason.
Maxim
22-Sep-2009
[17880x3]
but its just being picky... the real thing... is what is evil about 
blocks?
but you see its not an addition.  its "go-over-this-and-accumulate-failure-or-not"
here... we have the precise name... its over 30 chars long   ;-)
Pekr
22-Sep-2009
[17883]
we went too far. We should accept Steeves proposal - allow EITHER 
to be embraced as using condition OR the rule. Single as that. You 
can't beat the EITHER name. Thinking here and there, I can't imagine 
how + could be named, with the used syntax ...
BrianH
22-Sep-2009
[17884]
Alright, explain the arithmetical - without usoing the word "subtraction". 
I had switched subjects. Oh, and don't use "hyphen" either.
Maxim
22-Sep-2009
[17885]
actually, I think there are better words than either.
Pekr
22-Sep-2009
[17886x2]
Brian - not, it is you, who can't explain it in fact. You can come 
up with a sensible name for the pattern of usage, so you throw some 
obscure symbol at us :-)
you can = you can't
BrianH
22-Sep-2009
[17888]
Symbols mean different things depending on context, and the context 
here is parsing, not arithmetic. We still need to use them.
Pekr
22-Sep-2009
[17889]
Max already said it - here's the name :-) "go-over-this-and-accumulate-failure-or-not"
Maxim
22-Sep-2009
[17890x2]
I'm thinking  about something along the lines of   subject-to
providing
Pekr
22-Sep-2009
[17892]
I suggested to Carl kind of syntax for the equivalenc to CASE or 
SWITCH ... maybe one of those two?
BrianH
22-Sep-2009
[17893x3]
I don't need to explain Carl's + semantics because Carl was quite 
explicit in his own explanation. It made sense if you know parse 
theory, and you won't use it if you don't know parse theory. Maxim's 
term was inaccurate, though he's getting better.
PARSE itself is equivalent to CASE, so no syntax needed.
BRANCH was the best term before Carl came up with +.
Maxim
22-Sep-2009
[17896]
I do have the proper word for IF, semantically....  'DEPENDS.
BrianH
22-Sep-2009
[17897]
Must be prefix.
Maxim
22-Sep-2009
[17898]
as in this RULES depends on this RULE
Pekr
22-Sep-2009
[17899]
Max - we have to stay with + or some other symbol. If you look at 
examples, there is stuff like [a 2 + b | c | d | e] and I don't think 
any name will fit all usage scenarios.
Maxim
22-Sep-2009
[17900x2]
yes I know ... but we never had a single word which properly explained 
what is going on ... now we do.
(for if)
BrianH
22-Sep-2009
[17902]
Only some words can be infix, depending on the semantics of the operation. 
& and | (whatever they are eventually called) can be infix. The rest 
have to be prefix.
Maxim
22-Sep-2009
[17903]
I'm sorry, but the |  will just end up being


 [   complex rule with its own  "|" symbols ] | [   complex rule with 
 its own  "|" symbols] | [  complex rule with its own  "|" symbols 
  ]  so really the use of "|" jusy adds clutter and ambuiguity.
BrianH
22-Sep-2009
[17904]
When you don't have a descriptive term that covers an idea, you use 
a symbol and tell someone to learn it.