rocket-lang
rocket-lang copied to clipboard
unique behavior of puts
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