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.
Example:
ADT$Map[$$_Association]
ADT$Map /: get[$$_Association] := $$;
In the Webel recipe for ADTs this is actually inherited from a base ADT
and uses a variable 'pattern' as a template that is passed to a definer function:
ADT /: get[pattern] := $$;
So in the above case pattern
would be $$_Associaton
.
This policy offers a clearly identified variable expression that is not likely to otherwise be used in code (unless deliberately) and helps avoid this possible clash:
However, to make the Webel ADT recipe work when referenced from OTHER packages, you need this:
Beware also that the special ADT⊙get
accessor BREAKS ENCAPSULATION: