Clean up text handling a bit:
- Rename IO.write -> IO.print. - Make IO.write not print a newline. - Support \u Unicode escapes in strings.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
IO.write(1 + 2) // expect: 3
|
||||
IO.write(12.34 + 0.13) // expect: 12.47
|
||||
IO.write(3 + 5 + 2) // expect: 10
|
||||
IO.print(1 + 2) // expect: 3
|
||||
IO.print(12.34 + 0.13) // expect: 12.47
|
||||
IO.print(3 + 5 + 2) // expect: 10
|
||||
|
||||
// TODO: Unsupported RHS types.
|
||||
|
||||
Reference in New Issue
Block a user