The Webel ‘$’ prefix convention for Strings and "String similar" Wolfram Language code

Gallery
Tutorial
Topic level
Mathematica keywords
Webel Mathematica keywords
Keywords
Click on the image to view it full size

EXAMPLE: The '$' prefix convention is used for diagnostic functions of the Webel Devel` package that can accept a String or StringForm as the diagnostic '$msg' message argument to echo (typically styled) to the console.

EXAMPLE: The '$' prefix convention is used for the '$client' argument of a function that acts on behalf of (as a delegate of) another function, where the '$client' may be a Symbol (preferred) OR a String or StringForm if more detailed tracking is required (such as during debugging).

NB: where an argument may only accept a Symbol a '$' prefix is NOT used.

The '$' prefix indicates that the variable or argument must either by a String strictly (so $var_String) OR expects something "String-like" or something that will be used like text and could accept a String (but might still work with a StringForm or a Symbol).

There are other Webel conventions (such as the '$opt$', '$arg$' and '$k$' conventions we'll explore in the next slides) that strictly only use String.

For reference, some related Webel convention policy notes (explored in more detail also in later slides). For now it's recommended that you don't visit these links yet but instead just view the next slide:

Up next
Notes
Snippets (quotes/extracts)
Visit also
Visit also (backlinks)
Related slides (includes other tutorials)
Related slides (backlinks, includes other tutorials)