Skip to content

unique behavior of puts #170

@MarkusFreitag

Description

@MarkusFreitag

While puts is useful for debugging, it can not really be used for writing stuff to the terminal. The main reason for that is how strings are handled. Lets discuss whether this should change or it stays this way and we add another simple way of writing to the terminal.

// what you get
🚀 » puts("1\n2")
"1\n2"
» nil
// what you expect
🚀 » puts("1\n2")
1
2
» nil

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdiscussionThings to discuss in order to improve the language

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions