[REBOL] Re: cgi question
From: Gary:Jones:usap:gov at: 8-May-2004 7:35
From: Kai Peters
KP> You see me confused, for the script works well with 'my' formatting (am
KP> coming from C and Pascal and have always wanted my braces and begin/end
KP> pairs lined up nicely). I thought I read somewhere that REBOL is very
KP> lenient when it comes to white space etc. including CR/LF etc.?
From: Gregg Irwin
GI> Don't be confused, REBOL doesn't care at all about the formatting.
....
With all due respect, I am not a formatting elitist, either, and was not
meaning to sound critical of Kai's formatting.
In retrospect, the point I failed to make is that when cutting and pasting
into a REBOL command line session, one can run into formatting issues.
Here is an example from Kai's program, when a snippet is cut and pasted
into a REBOL session (at least on Windows):
>> header: make system/standard/email
** Script Error: Invalid argument: (missing value)
** Near: header: make system/standard/email
>> [
[ To: [ recipient1 ]
[ From: [ [web--xxx--com] ]
[ Subject: "subject"
[ Organization: "organization"
[ ]
== [
To: [recipient1]
From: [[web--xxx--com]]
Subject: "subject"
Organization: "organization"
]
The same snippet runs without error when in a listing that is then run
as a program. I frequently develop scripts by cutting and pasting
from a text file into the command line. I can get large code fragments
loaded, so that I can then play with the results interactively. With
this method, at least on windows, REBOL *does* care about formatting.
As a result I tend to make sure that block arguments at least have the
opening bracket start on the same line.
This is why I have so frequently warned of "watch for line wrap" when
responding to email on the list: cutting and pasting the fragment may
not work if the line received an "unfortunate" wrap location.
I *just* realized that I sort of assumed everyone developed using these
methods, and in that point I was being unfortunately narrow sighted.
I apologize!
With respect, best wishes to all! Happy REBOLing however one wishes to
format.
--Scott Jones