A Context invariant and a run associated function are mentioned in the Strategy Pattern without any further explanation. I have the assumption that the example has been refactored but the description has been left unchanged, however, the file history does not show any major changes to the file.
A solution I propose and could complete is, cutting out any obscure mentioned identifiers in the description leaving the example as is.
Another solution is to give further context/sources/references to the obscure identifiers. This will probably include additions to the example.
I personally found the example very instructive and clear and would advocate to it leave unchanged.
A
Context
invariant and arun
associated function are mentioned in the Strategy Pattern without any further explanation. I have the assumption that the example has been refactored but the description has been left unchanged, however, the file history does not show any major changes to the file.A solution I propose and could complete is, cutting out any obscure mentioned identifiers in the description leaving the example as is.
Another solution is to give further context/sources/references to the obscure identifiers. This will probably include additions to the example.
I personally found the example very instructive and clear and would advocate to it leave unchanged.