Closed
Description
print()
in rusti behaves unexpected, compared to println()
:
rusti> let a = 42; println(fmt!("%d", a));
42
rusti> let a = 42; print(fmt!("%d", a));
~"42"
@cmr found there is a wrapper in librusti/wrapper.rs
doing a io::println(fmt!("%?", result));
.
This makes it easier to do a print(a)
for any type, but it is overlaying io::print with a different behavior.
I am not sure, whether this wrapper is necessary, since a
inspects the item in a similar way.
Metadata
Metadata
Assignees
Labels
No labels