Scripting behaviors
[1/5] from: rebol-list2:seznam:cz at: 17-Jun-2003 18:37
Hello Maarten,
Monday, June 16, 2003, 7:45:29 PM, you wrote:
MK> Hi,
MK> I put the rugby distro at:
MK> http://www.koopgoedkoop.net/rugby.zip
MK> This is still the March 2003 version.
MK> --Maarten
Thanks Maarten, but don't you have some script which is able to
convert your scripts to more readable form? :)
Using things like:
some-function: func
[
"some args"
]
[
"some code"
]
is not too friendly. I prefer:
some-function: func [
"some args"
][
"some code"
]
which you can paste into Rebol console without error!
--
Best regards,
rebOldes mailto:[oliva--david--seznam--cz]
[2/5] from: maarten::koopmans::surfnet::nl at: 19-Jun-2003 7:28
Hi Oldes,
It's a matter of taste ;-) Keeping opening and closing brackets on the
same line gives me a visual cue if all blocks are correctly closed.
--Maarten
rebOldes wrote:
[3/5] from: SunandaDH:aol at: 19-Jun-2003 2:25
David:
> which you can paste into Rebol console without error!
Old REBOLers' trick:
do read clipboard://
If you make a function of this in your user.r ....
dfc: func [] [do read clipboard://] ;; Do From Clipboard
.... then you can execute any copied REBOL code no matter what prettyprinting
methods used by the coder
(I forget who invented this -- it was a long time ago -- but thanks!)
Sunanda.
[4/5] from: antonr:iinet:au at: 19-Jun-2003 18:08
I used to do it that way too, when I programmed c.
I find the style-guide compliant way is just as
good for lining up the blocks.
Anton.
[5/5] from: maarten:koopmans:surfnet:nl at: 19-Jun-2003 11:56
As said, it's a matter of taste.
--Maarten