[REBOL] Re: From "C" to Rebol: HELP!!/RESEND
From: joel::neely::fedex::com at: 31-Jul-2001 10:45
Tim Johnson wrote:
> ; warning!! untested code
> print-block1: func[blk[block!]/local index][
> index: 1
> loop length? blk[
> print pick blk index
> index: index + 1
> or one might write a function that looks like this:
> print-block2: func[blk[block!]][
> forall blk[print first blk]
> blk: first blk
> It is probably safe for me to say that print-block2 is better
> "reboleze" than is print-block1, which one could say is "tainted"
> by the "c" approach.
print-block3: func [blk [block!]] [
foreach item blk [print item]
> Now, here's what I propose: If two or three of you "real rebol
> programmers" would like to participate as mentors:
> I will provide code that is working rebol code, the mentor(s)
> will then offer suggestions that will optimize the code,
> I would appreciate feedback on this issue:
I don't claim to be one of the two or three real REBOL
programmers, but I'd be glad to participate in such a
series of discussions. My schedule has been a bit chaotic
lately, so I can't promise immediate turnaround, but would
be glad to contribute as time permits.
I'd suggest keeping it on the mailing list, both to maximize
the list of participants and to maximize the audience. I've
often learned something from seeing an answer to someone else's
question that I hadn't thought to ask.
This sentence contradicts itself -- no actually it doesn't.
-- Doug Hofstadter