Hi Don,

you wrote:
>For example when presenting the example:
>     ++: func ['word] [set word 1 + get word]
>
>    used in the manual to show the need for 'literal word,
>  here would be a good place to MAKE A NOTE  that it means
>
>       ++: func ['word] [set word (1 + get word)]
>
>and not:
>     
>       ++: func ['word] [set (word 1) + get word]
>

That's an important lesson. No point in overestimating how comfortably
newbies are with the REBOL way of using code. Always focus on the new thing
being explained and include the bare minimum of illustrating code, so as
not to distract the user.

>It's embarrasing now to remember my puzzlement when first
>trying to make the later version work as an incrementer.

I can imagine ;-). But, you know what, it happens to everyone. Tell me
something, would this have worked for:

++: func ['word] [set word (+ get word 1)]

Less parentheses, but as understandable? For old Scheme or Lisp
programmers, surely. But how does it look to you?

Elan

Reply via email to