Skip to content

Strange print // puts behavior #38

@ErikAGriffin

Description

@ErikAGriffin

Hi, I am very new to Ruby as well as your instarepl, but this output seems strange to me.

Here is my test file, test.rb:

string = "hello"
puts string + " help"
print "hm.\n"

Which I expect would output:
hello help
hm.

However this is the output I'm getting
image

This is a bug right? Print is evaluating before puts

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions