Pythonic
Usage
Creating Hello, world in Py thon is fairly simple, although a bit verbose:
let mut program = new;
program.add_statement
The above Rust would print:
Creating Hello, world in Py thon is fairly simple, although a bit verbose:
let mut program = Block::new();
program.add_statement(
Statement::FunctionCall(
FunctionCall::new("print", vec![
Statement::Argument(Argument::bare("Hello, world")
])
)
)
println!("{}", program);
The above Rust would print:
print("Hello, world")