World: r3wp
[!REBOL3-OLD1]
older newer | first last |
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. |
Maxim 22-Sep-2009 [17905] | but the idea about REBOL has always been to be anal about FINDING those terms... Carl himself has admitted to using up more time choosing mezz names than coding them. |
BrianH 22-Sep-2009 [17906x2] | PARSE already has a lot of | symbols, and the operation currently proposed to be named | actually ties intto the current semantics of those | operations. |
currently proposed to be named + | |
Pekr 22-Sep-2009 [17908] | what are you talking about? You want to change the meaning-of, or replace | symbol? :-) |
BrianH 22-Sep-2009 [17909x2] | I'm having trouble typing because of AltME freezes. |
Pekr, *you* want to change the | symbol. Or rather, you want to do something exactly equivalent, changing the corresponding & operation to STAY. | |
Pekr 22-Sep-2009 [17911x4] | | is visually good ... it is like wall dividing slots ... it fits ... the + is more complex. Guru stuff, which we will have difficulcy to explain. Maybe it can't be done the other way. So - user has to learn what does it do by examples, get used to it, and then maybe, he will understand it, once he sees it in the code. The only question is, if eventually naming it, or changing the syntax to achieve the same, could be done more elegantly, which I start to doubt. |
There is NO & operation ... | |
... not in current parse. Just in parse theory. I don't care about the theories. | |
... you are just using those excuses. Simply put - if you want STAY instead of AND or &, then we will throw it back to you, accusing you of the need to change already used | symbol by giving it a name :-) | |
BrianH 22-Sep-2009 [17915] | Proposed. Originally, Peta renamed & to AND since he (she?) thought that a spelled-out word was required by the dialect. Then I changed AND to AT since I didn't know infix operations were possible. Then Carl changed AT to STAY, since he didn't see the point. Then he realized what the operation meant and changed it back to &, what it should have been in the first place since it is the opposite of |. |
Pekr 22-Sep-2009 [17916] | I was always thinking about parse being an alien in the parsing world. It was just Peta who introduced us to the TDPL, PEG and other terms, trying to fit it to various theories. My opinion is - if such changes will not lead to eventual direct usage of already existing parse rules somewhere out there, then I don't really care about all those theories. We are already unique, and I don't want parse to go back adhering to some "standards". It feels the same, like changing feel, face, facet and all the naming to fit more general naming convention of the outer programming world ... |
BrianH 22-Sep-2009 [17917x4] | TDPL wasn't used, and PEG was created to describe parsers like PARSE, and 5 years later than PARSE was. |
The rest of the world is catching up with where PARSE has been for 10 years., | |
And the reason we are adopting operations from PEG, TDPL and GTDPL is because they fit into PARSE's semantics and are useful. | |
It's just filling in the blanks. | |
Maxim 22-Sep-2009 [17921] | sorry NOT for + |
older newer | first last |