-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why are errors prepended with ???
?
#238
Comments
There are about half-dozen uses of this in Symbolic, here's a few:
Those are not great. I don't think the
For comparison, the actual error looks like:
I feel we should consider dropping the |
I'm fine with replacing |
Worth mentioning that Texinfo has a
I see a few Octave doc blocks that use |
https://lists.gnu.org/archive/html/octave-maintainers/2019-10/msg00005.html |
I agree with dropping the |
In most cases, prepend `error: ` like Octave does. In special cases (currently `parse error:` but maybe others later) we do not do this prepending. This is a partial fix for Issue #238. But no changes yet on Matlab and no deprecation of `???`.
There are differences about formatting to be accounted for.
OctaveSo I think we should prepend Maybe there are other special cases? MatlabUnsure, will do Octave change first... |
Doctests for errors look like:
But why do we have this
???
? It doesn't seem to be there in either Matlab or Octave. I traced it back to [1], the original handling of exceptions. And we've kept it that way ever since.This could be changed before 1.0.0 (with some pain for projects using doctest).
[1] https://bitbucket.org/tgs/doctest-for-matlab/commits/4a322d4b85f773f303c0678ef0593e9483571e42
The text was updated successfully, but these errors were encountered: