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

Printing the values of variables should be optional #177

Open
vsajip opened this issue Jan 20, 2020 · 2 comments
Open

Printing the values of variables should be optional #177

vsajip opened this issue Jan 20, 2020 · 2 comments

Comments

@vsajip
Copy link

vsajip commented Jan 20, 2020

If I do at the gore> prompt

some_var, err := some_func()

the values of some_var and err are always printed. Can this be made optional? If I want to type more than one command when exploring some library, for example, I don't necessarily want to clutter the display with all elements of returned structures. Of course, typing the name of a variable should display the value, as it does currently - it just shouldn't perhaps print automatically on assignments. This is related to #139, I guess.

@itchyny
Copy link
Collaborator

itchyny commented Jan 20, 2020

This would be a new command line flag.

@vsajip
Copy link
Author

vsajip commented Jan 21, 2020

Yes - or more flexibly, perhaps, a new :-command such as :verbose that the user could invoke multiple times in a gore session, working as a toggle, or else taking an argument such as :verbose on / :verbose off.

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