thag_rs 0.2.1

A versatile cross-platform playground and REPL for Rust snippets, expressions and programs. Accepts a script file or dynamic options.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//: Demo scope of import statements.
//# Purpose: Prototype to confirm leaving imports in situ when wrapping snippets.
//# Categories: crates, learning
println!("ibi::Ubig with value 123={}", {
    use ibig::ubig; // This guarantees that this println will work without the other import.
    ubig!(123)
});

use ibig::ubig;     // Removal of this will cause the below to fail, but not the above.
// Expect this to fail without the above import of ibig::ubig, because
// the one inside the previous println is not in scope.
println!("Hoping to return ibig::UBig with value 987");
ubig!(987)