Skip to content

Added -debug flag, writing to STDERR. #125

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

Merged
merged 3 commits into from
Jan 29, 2023
Merged

Added -debug flag, writing to STDERR. #125

merged 3 commits into from
Jan 29, 2023

Conversation

skx
Copy link
Owner

@skx skx commented Jan 28, 2023

Since we have the I/O indirection for STDIN and STDOUT it makes sense to add the same for STDERR. Of course we don't have anything going there by default, so I've added a -debug flag to make it useful.

For the moment I'm logging the output of macro-expansion, but it probably makes sense to log other things instead/as well. Or remove it.

Ideally our lisp would be able to write to STDOUT and STDERR, but then we get into adding support for streams and files. That might be next..?

skx added 3 commits January 28, 2023 13:16
Since we have the I/O indirection for STDIN and STDOUT it makes sense
to add the same for STDERR.  Of course we don't have anything going
there by default, so I've added a -debug flag to make it useful.

For the moment I'm logging the output of macro-expansion, but it
probably makes sense to log other things instead/as well.  Or remove
it.

Ideally our lisp would be able to write to STDOUT and STDERR, but
then we get into adding support for streams and files.  That might
be next..?
@skx skx merged commit 69e0b92 into master Jan 29, 2023
@skx skx deleted the debug-stderr branch January 29, 2023 06:25
@skx skx mentioned this pull request Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant