DocStringExtensions - interpolation string "$" allowed only in the preamble but not inside the structure

You can use @doc "...." object to have more control over the documentation string (which, in fact, can be an arbitrary object), including to do interpolation into the string.

2 Likes