Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: can't quite get it right...

From: greggirwin:starband at: 7-Sep-2001 9:42

Hi Anton, I hit Send too quickly...<g> I'm one of those guys that thinks style is very important, and that's a learning curve for me as well. I really like that you can use uppercase? as an alternative to is-uppercase, which many (most) languages wouldn't allow. Are there style guidelines, either written down or just passed by tradition, that most of you expert types agree on? I tend to be a pretty verbose guy, but I'm finding that even in my short time with REBOL, I'm writing things much more concisely and I'm wondering if that will come back to haunt me when maintaining things. Does it matter to experts very much if you use: either all [(ch >= #"A") (ch <= #"Z")] [return true] [return false] versus: return either all [(ch >= #"A") (ch <= #"Z")][true][false] verus: all [(ch >= #"A") (ch <= #"Z")] The last one is quite different to me, and very REBOLish, because it removes everything that isn't necessary. Us newbies have to think for a minute about what the result will be.<g> Do regular REBOLers care if functions return none instead of false or are the two so totally eqivalent that it's a moot point? Thanks again, very much! --Gregg