Rebol Talk Forum  |  REBOL Discussions  |  REBOL Core  |  Topic: comment words
Pages: [1] Print
Author Topic: comment words  (Read 523 times)
MagicDuck
Newbie
*
Offline Offline

Posts: 2


View Profile
comment words
« on: October 19, 2007, 01:46:31 PM »

Hi

I am new to Rebol and I must say I like it very much. I've always thought of myself as more of word-smith than a programmer and I have always strived to get my code as close as possible to natural language. It has been my experience that as code approaches natural language, the logic of it approaches intuition. Rebol allows a lot more freedom in that regard than other languages but sometimes I feel that things could be more easily understood if there were connection words, not just verbs and subjects. Perhaps it's because I am a newbie  Grin. What I think is that it would be cool to have comment-words, just like we have set-words, get-words, etc. Comment words would have no effect, they would be just one-word comments.

Assuming the syntax for a comment word would be: .word (preceding the word with a dot), instead of:

Code:
send friend detab copy message
(taken from user guide)
you could do:
Code:
send friend .a detab copy .of .the message

Of course, it would be appropriate in some places and not in others.
What do you guys think?

MagicDuck
Logged
henrikmk
Newbie
*
Offline Offline

Posts: 49


View Profile
Re: comment words
« Reply #1 on: October 20, 2007, 07:35:49 AM »

An alternative is to use the issue! datatype:

send friend #a detab copy #of #the message

which can entirely serve the same purpose. During parsing, REBOL can easily skip over these types.
Logged
MagicDuck
Newbie
*
Offline Offline

Posts: 2


View Profile
Re: comment words
« Reply #2 on: October 21, 2007, 04:22:34 PM »

Neato!
Thanks a lot, henrikmk. Rebol rocks!

MagicDuck
Logged
Pages: [1] Print 
Rebol Talk Forum  |  REBOL Discussions  |  REBOL Core  |  Topic: comment words
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 05:29:34 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2285 Posts in 594 Topics by 3708 Members
Latest Member: cialissactiv

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc