Skip to content

Printed output is stacking, is this intended behavior? #67

@mtaufen

Description

@mtaufen
gore> :import "fmt"
gore> fmt.Println("ha!")
ha!
(int)4
(interface {})<nil>
gore> fmt.Println("ha!")
ha!
ha!
(int)4
(interface {})<nil>
gore> fmt.Println("ha!")
ha!
ha!
ha!
(int)4
(interface {})<nil>
gore> fmt.Println("ha!");
ha!
ha!
ha!
ha!
gore> 
gore> 
gore> 

See the above short session, and note that the calls to fmt.Println("ha!") seem to stack and repeat each time fmt.Println is used, is this intended?

Also note that omitting the semicolon results in

(int)4
(interface {})<nil>

being printed after the accumulated output from fmt.Println.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions