lgo
lgo copied to clipboard
Stop printing return values of fmt.Print functions
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.
yeah, agree, it really confuses me when I got this result: