Webel: Mathematica: CONVENTION: Where keys of Associations are Strings they are encapsulated as variables prefixed with '$k$' (promotes DRY and has many advantages, such as IDE prompting). Direct use of "Strings" as keys is WET and strongly discouraged!

Webel IT Australia promotes the amazing Mathematica tool and the powerful Wolfram Language and offers professional Mathematica services for computational computing and data analysis. Our Mathematica tips, issue tracking, and wishlist is offered here most constructively to help improve the tool and language and support the Mathematica user community.
DISCLAIMER: Wolfram Research does not officially endorse analysis by Webel IT Australia.
Icon class
icon_class
far fa-sticky-note
icon_class_computed
far fa-sticky-note
Note kind
Policy level
Mathematica keywords
Webel Mathematica keywords
Keywords
In the Webel coding recipe for the Wolfram Language and Mathematica String keys for Associations are encapsulated as String variables prefixed with '$k$', which promotes DRY coding and has many other advantages, such as IDE prompting.
Direct use of "Strings" as Association keys is WET and strongly discouraged!

Note that this policy does not state that Associations MUST use Strings as keys in all Associations, just that where Strings are indeed used they SHOULD be encapsulated as '$k$' String variables.

For some '$k$' usage examples visit:

The '$k$' convention is often used together with these Webel help holder conventions:

EXAMPLE: The Webel help Rule system used to register '$opt$' and '$arg$' help holders with the HelpF` and HelpO` help registries uses the '$k$' key convention.

There is a detailed technical slide trail describing how the Webel naming conventions for Wolfram Language code work together:

Relates to
Related notes
Related notes (backlinks)
Related snippets (extracts)
Visit also
Visit also (backlinks)