Expand description
I/O Operations for LOGOS Programs
Provides input/output primitives for LOGOS programs including:
show: Natural formatting output (primitives without quotes, collections with brackets)print,println,eprintln: Standard output functionsread_line: Read a line from stdin
The Showable trait enables custom types to integrate with the show verb.
§Example
use logicaffeine_system::io::{show, println, read_line};
// Natural formatting with show
show(&42); // Prints: 42
show(&"hello"); // Prints: hello (no quotes)
show(&vec![1, 2, 3]); // Prints: [1, 2, 3]
// Standard output
println("Enter your name:");
let name = read_line();
println(format!("Hello, {}!", name));Traits§
- Showable
- Custom trait for LOGOS Show verb - provides clean, natural output. Primitives display without quotes, collections display with brackets.