2019-03-08 21:30:30 +00:00
|
|
|
import io
|
|
|
|
|
|
|
|
fn main () {
|
|
|
|
s := "this is a string"
|
|
|
|
io.puts(s)
|
|
|
|
|
|
|
|
s := "this is {s}"
|
|
|
|
io.puts(s)
|
|
|
|
|
2019-03-08 21:45:33 +00:00
|
|
|
s := s + 2 // invalid
|
2019-03-08 21:30:30 +00:00
|
|
|
|
|
|
|
// this however, is valid, there is an io.puts that handles int,
|
|
|
|
// more on function overload in a bit
|
|
|
|
io.puts(2)
|
|
|
|
}
|