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

Don't print values with let bindings for things already in the ambient context #2218

Open
byorgey opened this issue Dec 3, 2024 · 0 comments
Labels
C-Low Hanging Fruit Ideal issue for new contributors. L-Pretty-printing Pretty-printing ASTs or values into a string representation. T-UI Involves the user interface.

Comments

@byorgey
Copy link
Member

byorgey commented Dec 3, 2024

For example:

> def x = 1 end
> \_. x
it0 : forall a. a -> Int = let x = 1 in \_. x

There's no reason to print the let x = 1 in ..., since x is already in scope.

See original discussion at #350 (comment)_

@byorgey byorgey added C-Low Hanging Fruit Ideal issue for new contributors. L-Pretty-printing Pretty-printing ASTs or values into a string representation. T-UI Involves the user interface. labels Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Low Hanging Fruit Ideal issue for new contributors. L-Pretty-printing Pretty-printing ASTs or values into a string representation. T-UI Involves the user interface.
Projects
None yet
Development

No branches or pull requests

1 participant