-
Notifications
You must be signed in to change notification settings - Fork 20
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
better error messages, eg: report indexes and shape instead of static text #1
Comments
I can add information about position: |
just wrote this: hacky but works: while waiting for a fix to https://issues.dlang.org/show_bug.cgi?id=13055 |
|
|
and pure can be worked around in debug mode [updated thread]:
now this should be made into something more generic and reusable... |
Looks like it is better to implement own function for integers in the package. |
what do you mean? |
|
+1 [ugly is ok while waiting for a better solution, eg rcstring or https://issues.dlang.org/show_bug.cgi?id=13055 ] |
does not related to this repo anymore |
these error messages are not very helpful for debugging:
https://github.com/DlangScience/mir/blob/master/source/mir/ndslice/slice.d#L854 [+ elsewhere similar]
how about instead:
NOTE: not sure if there's a better way to do it, but i want to have the check only in -release mode (hence version(assert)), and I want to avoid runtime cost in forming a text(..) expression when the assert passes, hence the enforce(boo, lazy exp)
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29736892-better-error-messages-eg-report-indexes-and-shape-instead-of-static-text?utm_campaign=plugin&utm_content=tracker%2F18251717&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F18251717&utm_medium=issues&utm_source=github).The text was updated successfully, but these errors were encountered: