Skip to content
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

prefix operator for printf debugging #749

Open
remexre opened this issue Apr 24, 2023 · 1 comment
Open

prefix operator for printf debugging #749

remexre opened this issue Apr 24, 2023 · 1 comment

Comments

@remexre
Copy link
Member

remexre commented Apr 24, 2023

It'd be convenient for debugging to have a prefix operator (or some other syntax) that expands like %x => unsafeTracePrint(x, __FILE__ ++ __LINE__ ++ show(x)) (not literally that for thunk-sharing, formatting, etc. reasons. (see Rust's dbg! for prior art)

@krame505
Copy link
Member

Seems reasonable, not sure what the best syntax would be. Would prefer to not just use a symbol, but I would also like to minimize the number of things we add that look like functions but aren't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants