Naming Conventions

TADS 3's standard libraries follow a naming convention similar to that used for the Java system classes.  For consistency, the intrinsic function name and intrinsic class method definitions provided with the compiler follow this same set of conventions.  Here's a summary of the naming rules:

 

 

Note that the intrinsic functions don't adhere to these rules quite perfectly.  In particular, the names of the regular expression functions (rexMatch, rexSearch, etc.) are slightly irregular in that the "rex" prefix is an abbreviation for "regular expression."  Spelling out the prefix as "regularExpression" or even "regEx" makes the names too long, though, so the shorter prefix is used in the hope that it is sufficiently clear and not too jarringly inconsistent with the rest of the naming scheme.