THE number of...

erik hansen erikhans08 at yahoo.com
Mon Jan 14 00:05:01 EST 2002


have to admit that THE functions read better with
"the" in front. esp. if i hope to use any
handlers for teaching programming.

while converting all functions in HC for MC
conversion. i came upon and expanded this
handler:

function tot it,what
  if what is empty 
  then return (the number of items in it)
  else if what is "l" 
  then return (the number of lines in it)
  else if what is "w" 
  then return the number of words in it
end tot

the idea is to increase white space in the
scripts.

get bg fld og
put tot(it,l) into tot
repeat with 1 = 1 to tot
  whatever(line i of tot)
end repeat

put tot(it,l) into tot
shorter
put (the number of lines in it) into tot
clearer

only thing is, nobody else does this.
maybe clearer is better than shorter?


=====
erik at erikhansen.org                 http://www.erikhansen.org

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/



More information about the metacard mailing list