[REBOL] Re: [Fwd: Re: RSL: Rebol Standard Library]
From: chris:starforge at: 24-May-2001 20:47
#24-May-01# Message from *GS Jones*:
Hi GS,
> I guess here, too, I would have to add what I'm envisioning (Chris, get
> ready with the telepathic powers so that you can translation for the
> rest of the readers ;-).
LOL :))
> <alert type="feature bloat">
> I could envision a mechanism, perhaps a flag, where this hypothetical
> central server would deliver the correct version based on some
> configurable feature or flag.
> </alert>
In other words, keep two copies of the scripts on the server: one containing
all the comments and code and one stripped version and indicate in the
request which you require, for example:
UHURU/install text/conversion/del-ascii-html devel
to obtain the commented version. Leave of the devel and you just get the
code withthe comments stripped.
Maybe even
UHURU/install text/conversion/del-ascii-html devel doc
could be used to indicate that the development version and documentation
should be installed, leave off the doc and you just get the commented code.
Not bloat so much as redundancy. If there was a quick and easy way to strip
comments from REBOl code, you could just get away with storing the commented
version on the server: If a request came in for the stripped code you just
run the file through the comment stripper as you send it. If a request came
in for the development version you just send the file as is. If a request
came in for the developer version + docs then you could send the file and
then use a doc generator to generate the docs (unless they have been
pre-written of course). (The logical fourth option is to obtain the
uncommented code + docs - although I guess this is only attractive to
Real Programmers (who probably wouldn't be using REBOL anyway))
In the absence of a fast and clean comment stripper though, storing both
files plus an optional html doc would be the easiest, if rather wasteful,
way to do this.
> Poor Joel is probably thinking, why did I ever restart this thread.
I missed this the first time around - I was too caught up in the license
thread. I'll try to read through the discussion tomorrow at work, I don't
have to pay by the second there! ;/
> very simply through LDC. And poor Chris is thinking does this guy really
> think I can read his mind?
:)
/me passes Scott a bottle of dried frog pills
Chris
--
New sig in the works
Explorer 2260, Designer and Coder
http://www.starforge.co.uk
--
Main's Law:
For every action there is an equal and opposite government program.