Today I''ve noticed interesting discrepancy between the Wolfram Language and its Documentation Center. I wrote a simple function which uses the built-in LinearSolve
inside, and in order to allow myself in future pass all possible Options to the latter one I added an auxiliary argument in the form:
myFunc[myArgs__, opts___?OptionQ] := ...
(sure that "myArgs" are specified in more precise way in my code, but it does not matter here)
I read about the OptionQ
function in the "Mathematica Programming: An Advanced Introduction" by Leonid Shifrin and used it in all cases like that with no doubt. But this time I tried to look in the documentation if this fucntion returns True
for all inputs with head Rule
or not. And surprisingly I have not found the corresponding page in the Documentation Center.
So, the question is: should I continue using OptionQ
function for my purposes or it is obsolete and it will be removed in the upcoming versions of the Wolfram Language? It is first time I can't find documentation for a fucntion known to the system.