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

World: r3wp

[!REBOL3-OLD1]

BrianH
7-Jan-2009
[9204]
You mean that programming language syntax and data syntax don't match 
exactly. LOAD is for REBOL syntax, and we want those errors for REBOL 
syntax. Those thrown errors help you clean up your bugs.
Steeve
7-Jan-2009
[9205]
debuging behavior should not be the default one (as you stated previously 
Brian)
BrianH
7-Jan-2009
[9206]
Yeah, by default bugs in your REBOL syntax should throw errors as 
loudly as possible, so they get fixed. Including extra commas :)
Maxim
7-Jan-2009
[9207x2]
but load can also understand just about all human readable ascii 
data ALSO.
which is one of the nicest features of REBOL
Steeve
7-Jan-2009
[9209]
comma are like tab or newline, they should be simply skiped by the 
VM, they are not syntax errors, they are decorations
BrianH
7-Jan-2009
[9210]
Prohibiting commas was a deliberate design choice, one I agree with. 
REBOL is not C or English.
Maxim
7-Jan-2009
[9211]
we allll agree to that.
BrianH
7-Jan-2009
[9212]
You can't see a tab or newline (not really).
Steeve
7-Jan-2009
[9213]
only when molding values, but what the prob ?
BrianH
7-Jan-2009
[9214]
We have code to parse syntax with commas - string PARSE, for instance. 
The problem is that if we allow people to use commas, they will use 
commas.
Steeve
7-Jan-2009
[9215]
block: [a,b,c,d,e,f]; should be allowed with comma as blank separator
Maxim
7-Jan-2009
[9216x2]
not within rebol code.
but when loading from a string yes.
Steeve
7-Jan-2009
[9218]
ahah
BrianH
7-Jan-2009
[9219]
The point to prohibiting commas is to prevent people from doing that.
Maxim
7-Jan-2009
[9220x3]
what we are saying is that there should then be a function called 
"impoert
oops.
'IMPORT
BrianH
7-Jan-2009
[9223]
For modules? That's what we use IMPORT for.
Steeve
7-Jan-2009
[9224]
Brian we know historicaly that the prohibition is a wrong way ;-)
Maxim
7-Jan-2009
[9225x2]
then, maybe, although it does the same thing AS load, it wouldn't 
be used by the interpreter, and would explicitely allow the interpreter 
to use the loading functionality which already understands about 
95% of human readable ascii text as it is.
hehehe
BrianH
7-Jan-2009
[9227]
Not for this it isn't.
Maxim
7-Jan-2009
[9228]
really brian, I can't recall how many times I've had ascii files 
from sources which I could almost just load as-is.  and when the 
extra syntax, was just useless decoration, which can be ignored.
Steeve
7-Jan-2009
[9229]
probably Carl during his childhood was hurted by a comma so that 
he can't see them now
Maxim
7-Jan-2009
[9230x4]
I do agree with brianh and Carl that I refuse to have to deal with 
commas within rebol code.
everytime I've gone back to python or some other C-based language 
like javascript... I've cursed at the uselessness of the commas I 
have to type.
but I would like to USE data which has some of it... which isn't 
even code, most of the time...
a simple CSV file, for example.
Steeve
7-Jan-2009
[9234]
but you are not forced to use them, it's just one more separator
Maxim
7-Jan-2009
[9235]
but if we allow them, people from other language will start using 
them, and really, its going to be some kind of polio virus.
Steeve
7-Jan-2009
[9236]
anyway...
BrianH
7-Jan-2009
[9237]
People underestimate how much thought went into the REBOL syntax. 
REBOL was carefully and deliberately designed for quick programming. 
One of the most important choices was to not use commas and periods, 
because it is tricky to tell them apart or see them when reading 
a lot of code. They are not used in numbers either, because they 
are ambiguous in internationally visible code.
Maxim
7-Jan-2009
[9238]
brian, allowing a relaxed mode alllows me to be quick. as opposed 
to try and manually redo what rebol does already.  using the actual 
commas within code IS evil, don't get me wrong.
BrianH
7-Jan-2009
[9239x2]
Unfortunately a lot of the syntax choices were based on the US keyboard 
(hence the [ and ]).
This plays havok with mobile or foreign use.
Steeve
7-Jan-2009
[9241]
what other choices we had ?
Maxim
7-Jan-2009
[9242]
mobile keyboards... ouch true!  the  [ ] aren't even on them usually.
BrianH
7-Jan-2009
[9243]
Strangely enough, the ( and ) of Lisp derivitives is better supported 
on phones :)
Maxim
7-Jan-2009
[9244]
but then the { } aren't there either and in fact, { } on european 
keybord sometimes is even worse... (alt key use beurk)
Graham
7-Jan-2009
[9245]
There used to be someone on the ML who was always complaining about 
the WinCE version ... and the keys
Maxim
7-Jan-2009
[9246x2]
but parens imply an expression... not containment... so I do feel 
that the use of ( ) is not very a very good choice for rebol, where 
both are intrinsically different in rebol.
people are always whinning.....    ;-)
Steeve
7-Jan-2009
[9248]
Brian ( ) are used a lot in human languages ;-)
Graham
7-Jan-2009
[9249]
I think it was Brian ...
Steeve
7-Jan-2009
[9250]
how do you do emoticons if not :)
BrianH
7-Jan-2009
[9251]
[

, "]", "/" and "-" were chosen because they can be typed on a US 
English keyboard without using the shift key. The fact that you can 
program in REBOL without using the shift key most of the time speeds 
up your typing of REBOL code (though not the name REBOL).
btiffin
7-Jan-2009
[9252]
I'll just make a remark about "invalid" data.  If the lexical stashed 
those in foreign! it would no longer be "invalid", it would become 
the REBOL foreign! datatype!   You can't add email! url!   but they 
are sitll loadable values.   And again, professionals are NOT who 
I want to assist here.  It's the casual home user.   Allow 1000 casual 
users, 30 might become rebols, 1 might become a valued member of 
REBOL3 that we learn something from or develops Video Altme.   We 
add to the pile.
Steeve
7-Jan-2009
[9253]
beware Brian, there are some commas in your last sentence...