-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add inspect(…) function for debugging #506
Comments
Isn’t |
I was thinking of Haskells
which
I like |
I was thinking of the |
Hey, I started working on this, and I would like some hints on the kind of implementation you would be interested in. From what I understood, since a function in numbat cannot execute a list of instructions there is no way to do this in the stdlib. My idea would be to introduce a new Can you think of any other way? |
I thought about implementing this as a FFI function, but haven't thought it through. Can provide more information later |
So I was thinking that we could do
in the prelude and then implement Or we could try to pass the |
We also need to print the span where the call originated, am I right? |
That would be great.
Spans include the I recently refactored this part of the codebase. I hope we're able to maybe adapt the macros like Maybe it makes sense to further blow up |
Add a simple
function that acts like the identity function, but prints the value
x
to the terminal. Ideally, this would come with source code location information (Span
), similar to our error messages.The text was updated successfully, but these errors were encountered: