[FM Discuss] definition of string

Seth David Schoen schoen at loyalty.org
Thu Apr 16 10:41:11 PDT 2009


adam hyde writes:

> is it ok to say this : 
> "a string is a collection of characters like 'almond' or 'eiessj44ik' or
> 'almond34' etc"

Better "a sequence of characters", since order matters.  This
distinguishes a string from something like a regex character class,
where order doesn't matter.  For example, [rat], [tar], and [art]
would be the same character class, but "rat", "tar", and "art"
are three different strings.

-- 
Seth David Schoen <schoen at loyalty.org> | Wol dir, werlt, daz du bist
     http://www.loyalty.org/~schoen/   | also freudenriche!
     http://vitanuova.loyalty.org/     |           -- Carmina Burana



More information about the Discuss mailing list