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

Stop printing return values of fmt.Print functions #4

Open
yunabe opened this issue Oct 19, 2017 · 1 comment
Open

Stop printing return values of fmt.Print functions #4

yunabe opened this issue Oct 19, 2017 · 1 comment

Comments

@yunabe
Copy link
Owner

yunabe commented Oct 19, 2017

In the current version, lgo always prints the result of the last expression.
Because of this spec, lgo prints (n, error) pair if the last statement of a code block is fmt.Println(...).
Obviously, this is not an ideal behavior. We should stop printing the last expression under some conditions.

@Friday21
Copy link

yeah, agree, it really confuses me when I got this result:
Screen Shot 2020-02-24 at 2 54 20 PM

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

No branches or pull requests

2 participants