stdlib: Inference engine caught some type errors! Also added some hot garbage.
This commit is contained in:
19
stdlib/std/io.cl
Normal file
19
stdlib/std/io.cl
Normal file
@@ -0,0 +1,19 @@
|
||||
//! The IO module contains functions for interacting with
|
||||
//! input and output streams
|
||||
use super::str::str;
|
||||
|
||||
/// Immediately causes program execution to stop
|
||||
#[builtin = "panic"]
|
||||
fn panic(..args) -> !;
|
||||
|
||||
/// Prints whatever you give it
|
||||
#[builtin = "print"]
|
||||
fn print(..args);
|
||||
|
||||
/// Prints whatever you give it, followed by a newline
|
||||
#[builtin = "println"]
|
||||
fn println(..args);
|
||||
|
||||
/// Debug-prints a thing, returning it
|
||||
#[builtin = "dbg"]
|
||||
fn dbg(arg) -> _ arg
|
||||
Reference in New Issue
Block a user